Can Someone Look At This Code?

From: Date: Sat, 24 Aug 2002 00:47:58 +0000
Subject: Can Someone Look At This Code?
Groups: php.general 
Request: Send a blank email to php-general+get-113886@lists.php.net to get a copy of this message
Ok here is the code: --------------------------------------------------------------------------------------- <?php $tbit =mysql_query("select * from threads")or die (mysql_error()); while ($threadbit =mysql_fetch_array($tbit)) { if ($threadbit ["sforumid"] == $sub) { ?> <a href="post.php?cat=<?php echo $threadbit ["sforumid"]; ?>"> <?php echo "New Thread"; echo "</a>"; } } mysql_free_result($tbit); ?> ----------------------------------------------------------------------------------- But for some reason it is shwoing the result the exact same time in accordance with the number of another variable? Thanks - JohnP

« previous php.general (#113886) next »