note 30940 added to function.msql-numfields

From: Date: Thu, 03 Apr 2003 21:39:44 +0000
Subject: note 30940 added to function.msql-numfields
Groups: php.notes 
Request: Send a blank email to php-notes+get-46184@lists.php.net to get a copy of this message
It's very simple to print out the result of any query. $result = query("$query"); if(mysql_numrows($result)) { echo("<table>"); for($i = 0; $i < mysql_numrows($result); $i++) { echo("<tr>"); for($j = 0; $j < mysql_numfields($result); $j++) { echo("<td>" . result($result,$i,$j) . "</td>"); } echo("</tr>"); } echo("</table>"); } -- http://www.php.net/manual/en/function.msql-numfields.php http://master.php.net/manage/user-notes.php?action=edit+30940 http://master.php.net/manage/user-notes.php?action=delete+30940 http://master.php.net/manage/user-notes.php?action=reject+30940

« previous php.notes (#46184) next »