|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-06-10 18:53 UTC] zeev at cvs dot php dot net
[2000-07-04 10:44 UTC] stas at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 10 22:00:02 2026 UTC |
<?php #this loop actually return the first result in the set but # subsquent results will recieve a warning. mysql_connect("", "web", "web"); $result = mysql("careers", "select * from table;"); $num_rows = mysql_numrows($result); for ($i = 1; $i < $num_rows; $i++) { # new line w/o table name in field echo $i . mysql_result($result, $i, "company") . "<bR>"; # old line w table name in field # echo $i . mysql_result($result, $i, "table.company") . "<bR>"; } ?>