cvs: phpweb / mod_bugs.php

From: Date: Sun, 03 Sep 2000 06:00:15 +0000
Subject: cvs: phpweb / mod_bugs.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-1935@lists.php.net to get a copy of this message
zak Sat Sep 2 23:00:15 2000 EDT Modified files: /phpweb mod_bugs.php Log: Added code to find out why the query is failing Index: phpweb/mod_bugs.php diff -u phpweb/mod_bugs.php:1.1 phpweb/mod_bugs.php:1.2 --- phpweb/mod_bugs.php:1.1 Sat Sep 2 22:49:31 2000 +++ phpweb/mod_bugs.php Sat Sep 2 23:00:15 2000 @@ -423,8 +423,11 @@ ### Changes made by j.a.greant 00/09/02 - $result = mysql_query("SELECT ts, email, comment from bugdb where id=$id order by ts"); - while ($temp = @ mysql_fetch_row ($result)) # $result should always be valid, suppress error just in case. + $query = "SELECT ts, email, comment from bugdb where id=$id order by ts"; + $result = mysql_query($query); + print '<br>'.mysql_error () .'<br>'; + + while ($temp = mysql_fetch_row ($result)) # $result should always be valid, suppress error just in case. { $prev_comments .= "[$temp[0]] $temp[1]\n$temp[2]\n\n" . str_repeat ('-', 76) . "\n\n"; }

« previous php.mirrors (#1935) next »