cvs: php-gtk-web /include shared-manual.inc

From: Date: Thu, 04 Oct 2001 15:05:04 +0000
Subject: cvs: php-gtk-web /include shared-manual.inc
Groups: php.gtk.webmaster 
Request: Send a blank email to php-gtk-webmaster+get-70@lists.php.net to get a copy of this message
cmv Thu Oct 4 11:05:04 2001 EDT Modified files: /php-gtk-web/include shared-manual.inc Log: debugging to find why notes aren't showing up Index: php-gtk-web/include/shared-manual.inc diff -u php-gtk-web/include/shared-manual.inc:1.46 php-gtk-web/include/shared-manual.inc:1.47 --- php-gtk-web/include/shared-manual.inc:1.46 Sun Sep 2 09:12:04 2001 +++ php-gtk-web/include/shared-manual.inc Thu Oct 4 11:05:04 2001 @@ -280,11 +280,16 @@ $query = "SELECT *, UNIX_TIMESTAMP(ts) AS xwhen, IF(votes=0, 10, rating/votes) AS rate FROM note " . "WHERE sect='$title' OR sect='$id' ORDER BY rate DESC, id"; +echo "\n\n<!-- DEBUG: $query -->\n\n"; + $result_id = @mysql_query($query); if ($result_id && mysql_num_rows($result_id) > 0) { +echo "\n\n<!-- DEBUG: numrows=" . mysql_num_rows($result_id) . " -->\n\n"; while ($row = mysql_fetch_array($result_id)) { $notes[] = $row; } + } else { +echo "\n\n<!-- DEBUG: err=" . mysql_error($result_id) . " -->\n\n"; } } else { $notes_file = "../usernotes/" . urlencode( $title ) . ".txt";

« previous php.gtk.webmaster (#70) next »