Hi all:
I posted this problem yesterday and did get a few replies, however those suggestions were stirring to a different direction which I do not intend to follow.
In any case here the (super easy) problem:
I have an order page which pulls data outta mysql, that portion works. When clicking on any of the orders, the next page displays the full detail of each order.
I know this si simple, because I've done 100s of times, but for some reason the variable is not getting passed here.
The codes are as follows:
Initial page:
<?
db_connect();
$getInfo=mysql_query("SELECT * FROM orders_txt ");
while ($i=mysql_fetch_array($getInfo))
{
?>
<a href="order_detail.php?Orders=<?echo $i[0]; ?>"><?echo $i[1]; ?>
<?}?>
This portion works fine 🙂
=======
The order_detail.php page which displays details:
<?
db_connect();
$sql="SELECT * FROM orders_txt WHERE OrderID= '$Orders' ";
$showInfo=mysql_query($sql) or die ("Sql prob:".$sql."<p>".mysql_errno().": ".mysql_error());
while ( $i=mysql_fetch_array($showInfo) )
{ ?>
<b><? echo $i[3]; ?></b><br>
<b><? echo $i[4]; ?></b><br>
<? }
?>
This page just produces blank 🙁
Do you see any problems?
I am going crazy over this!!!
Thanx
in advance
kamy