note 39593 added to function.msql-fetch-row
| From: | webmaster at forbbs dot net | Date: | Tue, 03 Feb 2004 17:14:47 +0000 |
| Subject: | note 39593 added to function.msql-fetch-row | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-64604@lists.php.net to get a copy of this message | ||
// DB CONNECT
$con=mysql_connect("localhost","okman","whywhat") or die("DB ERR
MSG: ".mysql_error());
// QUERY
$qry="select * from test LIMIT 1";
$ret=mysql_query($qry,$con);
// PRINT
if($ret) {
$row=mysql_fetch_row($ret);
echo $row[0]."<BR>";
echo $row[1]."<BR>";
echo $row[2]."<BR>";
} else {
echo mysql_error();
exit();
}
hmm.....
TEST Source... --;
----
Manual Page -- http://www.php.net/manual/en/function.msql-fetch-row.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39593
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39593&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39593&report=yes
Search -- http://master.php.net/manage/user-notes.php