cvs: phpweb / mod_bugs.php

From: Date: Sun, 03 Sep 2000 19:54:00 +0000
Subject: cvs: phpweb / mod_bugs.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-1951@lists.php.net to get a copy of this message
zak Sun Sep 3 12:54:00 2000 EDT Modified files: /phpweb mod_bugs.php Log: Index: phpweb/mod_bugs.php diff -u phpweb/mod_bugs.php:1.14 phpweb/mod_bugs.php:1.15 --- phpweb/mod_bugs.php:1.14 Sun Sep 3 12:35:33 2000 +++ phpweb/mod_bugs.php Sun Sep 3 12:54:00 2000 @@ -408,10 +408,10 @@ unset ($comments[0]); # Ditch the most recent comment #fetch original bug description - print $query = "SELECT ts1, email, ldesc from bugdb where id=$bug_id"; - print $result = mysql_query ($query); - print mysql_error (); - $comments[] = mysql_fetch_row ($result); + $query = "SELECT * from bugdb where id=$bug_id"; + $result = mysql_query ($query); + foreach (mysql_fetch_array ($result) as $key => $value) + print "<b>$key:</b> $value<br>"; foreach ($comments as $value) $output .= "[$value[0]] $value[1]\n$value[2]\n\n$divider\n\n";

« previous php.mirrors (#1951) next »