note 52667 deleted from function.mysql-query by mazzanet
| From: | mazzanet@php.net | Date: | Sun, 02 Oct 2005 13:42:15 +0000 |
| Subject: | note 52667 deleted from function.mysql-query by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-96184@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster at demogracia dot com
----
Please ignore my previous note. My test script failed on Friday but works fine on Monday :-S
<?
// Test script
$con=mysql_connect('localhost', 'test', 'test');
mysql_select_db('test', $con);
$res=mysql_query('select * from data', $con) or die(mysql_error());
mysql_close($con);
echo 'Sleeping... Please stop MySQL daemon now<br>';
sleep(30);
if($res){
while($row=mysql_fetch_assoc($res)){
var_dump($row);
echo "<br>";
}
}else{
echo '<br>Resource not available';
}
echo '<br>Finished';
?>