Select a printed element from database

Hello,

I’m modifying an script to occommodate my needs, so I created a member area.

Now in this member area customer’s reservation are shown, I succeeded showing the customer orders but now, I want that the customer has the ability to choose one of the listed(with radio) and give him the ability to get more details or to print.

I can’t imagine how to select one of the printed output.

Here is my current php code :
[php]$data = mysql_query(“SELECT * FROM bsi_bookings WHERE client_id=’$current_user’”)
or die(mysql_error());

echo “

”;
echo “”;
echo “”;
echo “”;
while($orders = mysql_fetch_array($data))
{

echo “

”;
echo “ ";
echo “";
echo “";
echo “";
echo “";
echo “";
echo “";
echo “”;

}
echo “

ID reservation Date et heure reservation Lieu de livraison Date de livraison Lieu retour Date retour Total
” . $orders[‘booking_id’] . "” . $orders[‘booking_time’] . " ” . $orders[‘pick_loc’] . " ” . $orders[‘pickup_datetime’] . " ” . $orders[‘drop_loc’] . " ” . $orders[‘dropoff_datetime’] . " ” . $orders[‘total_cost’] . "
”; [/php]

Thanks in advance for any help.

ok I found a solution by myself.

[php]echo "

";[/php]

Then :

[php]$this_order = $_POST[‘select_order’];[/php]

Thanks anyway!!

Sponsor our Newsletter | Privacy Policy | Terms of Service