<?php require 'functions.php3'; session(); connect();
require 'header.htm'; require 'side_bar.htm'; $query="SELECT * FROM products WHERE stock_number = '$item_number'"; $result=mysql_query($query); $row=mysql_fetch_array($result); <?php require 'functions.php3'; header("Pragma: no-cache"); session(); connect(); $query="SELECT * FROM products WHERE stock_number = '$item_number'"; $result=mysql_query($query); $row=mysql_fetch_array($result); Those are the two beginnings of each page. I cannot figure out what the difference is to make one work and not the other. Pat -----Original Message----- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Monday, January 05, 2004 3:32 PM To: Pat Hanna; Brad Pauly Cc: php help Subject: RE: [PHP] Strange coding bug [snip] I have tried printing out the query and got the exact same thing on both pages. The only relevent code is the code I included. The $item_number gets passed to both pages exactly the same. The query comes up no different on both pages. It is accessing the exact same product and yet it will not get a hit. [/snip] Please post more of the relevant code so that we can help you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php