Jump to content

Recommended Posts

hey guys i made scripts that update's a cart database..

 

but i have 1 page that updates the qty then it refreshes to go to page 2 that updates the price 1 then refresh to go to page 3...

 

is it possible to combine all the queries in one page?

 

like 1 execute this query first the execute query 2 ....

 

exaple of my query's

 


$sql2 = "UPDATE xcart_products p
LEFT JOIN TbItemInventory pp
ON p.productid = pp.XcartID
SET p.avail = pp.QuantityOnHand
WHERE p.productid =  pp.XcartID";
$retval = mysql_query( $sql2 );
if(! $retval )
{
  die('Could not update data: ' . mysql_error());
}
echo "All QTY Updated  successfully";


echo "<meta http-equiv=Refresh content=2;url=3.php>";  this will go to the second page that will update my prices..

Link to comment
https://forums.phpfreaks.com/topic/239984-all-in-one-page/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.