Jump to content

Recommended Posts

Hey guys i have a litle question..

 

i have a catalogue database with a order-order details and products tables.

 

now when an order is passt it goes true an xml flash page..

 

but i need to mode it so i want to drop the flash and only use php.

 

so in the databse in the order table there is orderID and user info.then in orderDetails theres the orderID and a product id

 

so what i did up to know is extract all orders

 

so i get orderID name price..

 

but know i need details so i linked it to a OrderDetails page

that gives me OrderId ProductId QTY..

 

so thats cool but know i need to get the product details from Product Table..

 

so Product id gives me a descrition of the products...

 

ahhh is there a way to make it one?lol!

 

or at least to see the order page but when you click more details or print you get the product descritption...

 

thx guys!!

Link to comment
https://forums.phpfreaks.com/topic/187481-multiple-pages-to-one/
Share on other sites

ok so i got this going

 

$order=$_GET['order'];
$date=$_GET['Date'];

$query = "select * 
from tblCommande right join tblCommandeDetail 
on tblCommande.NoCommande = $order AND $date " ; 

$result = mysql_query($query) or die(mysql_error());


<?  
while($row = mysql_fetch_array($result)){
echo $row['UName']. " - ". $row['IDProduit'];
echo "<br />";
}?>

 

works good but not completly..i dont have all the information?

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.