newbie about passing value
| From: | Ben Johnson | Date: | Tue, 30 Sep 2003 02:55:00 +0000 |
| Subject: | newbie about passing value | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-164331@lists.php.net to get a copy of this message | ||
Hi,
Why is the product_details.php is not getting the id value properly.
In the URL it is showing id=1 with along with the correction location and file name. But the page is not getting displayed.
<table cellspacing=1 cellpadding=5>
<tr bgcolor=#cccccc>
<td class=label nowrap>On-Special</td>
</tr>
<tr bgcolor=#cccccc>
<td class=normal>
<? while ($r = db_fetch_object($qid)) { ?>
<p><b><a href="<?=$CFG->wwwroot?>/shopping/product_details.php?id=<?=$r->id?>"><?=$r->name?></a></b>
<br><?=$r->description?>
<br>$<?=$r->price?>
<br>[<a href="<?=$CFG->wwwroot?>/shopping/cart_add.php?id=<?=$r->id?>">+ Add to cart</a>]
<? } ?>
</td>
</tr>
</table>
But when I hard coded the id as $id=1 in product_details.php the page with item displayed correctly. Please help
I am on W2k with PHP 4.3.2, MySql and Apache 1.X
Thank you
Ben
___________________________________________________
Art meets Anesthesia; Shefali Weds Dr. Raman.
Rediff Matchmaker strikes another interesting match !!
Visit http://matchmaker.rediff.com?1