PHP transfer variable question?????

From: Date: Sat, 14 Jun 2003 03:31:39 +0000
Subject: PHP transfer variable question?????
Groups: php.db 
Request: Send a blank email to php-db+get-28607@lists.php.net to get a copy of this message
PHP transfer variable question????? My program is ok in apache_1.3.19 and php-4.1.2£¬but when I change over to php_4.3.2 and apache_1.3.27,I can't get variable¡£ ------------------------------------------------------------------------ code: //newsList.php: $querystring = "SELECT id,title FROM $nTable ORDER BY id DESC LIMIT 3"; $result = mysql_query($querystring) or die ("can't query£¡£¡£¡"); while ($row = mysql_fetch_row($result)) { echo "<a href='news/show.php?id=$row[0]' >$row[1]</a><br>"; } ------------------------------------------------------------------------ code: //show.php $querystring = "SELECT * FROM $nTable WHERE id='$id'"; $result = mysql_query($querystring) or die ("can't query£¡£¡£¡"); echo $querystring; //test while ($row = mysql_fetch_row($result)) ------------------------------------------------------------------------ echo display£º SELECT * FROM news_tb WHERE id='' ----?? why is empty??? $id can't receive! How to resolve it??

« previous php.db (#28607) next »