note 54540 added to function.msql-fetch-row

From: Date: Thu, 07 Jul 2005 11:15:44 +0000
Subject: note 54540 added to function.msql-fetch-row
Groups: php.notes 
Request: Send a blank email to php-notes+get-91591@lists.php.net to get a copy of this message
Modification to the above code to make it work. Spelling Errors. <?php $con = mysql_connect(); if (!$con) { die('Server connection problem: ' . mysql_error()); } if (!mysql_select_db('test', $con)) { die('Database connection problem: ' . mysql_error()); } $result = mysql_query('SELECT id, name FROM people', $con); if (!$result) { die('Query execution problem: ' . mysql_error()); } while ($row = mysql_fetch_row($result)) { echo $row[0] . ': ' . $row[1] . "\n"; } mysql_free_result($result); ?> ---- Manual Page -- http://www.php.net/manual/en/function.msql-fetch-row.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54540 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54540&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54540&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54540&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54540&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54540&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54540&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54540&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#91591) next »