note 54540 deleted from function.msql-fetch-row by cmb

From: Date: Mon, 02 Nov 2020 15:22:44 +0000
Subject: note 54540 deleted from function.msql-fetch-row by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-215766@lists.php.net to get a copy of this message
Note Submitter: Kenneth Redpath ---- 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); ?>

« previous php.notes (#215766) next »