note 52667 added to function.mysql-query

From: Date: Mon, 09 May 2005 07:35:55 +0000
Subject: note 52667 added to function.mysql-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-89148@lists.php.net to get a copy of this message
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'; ?> ---- Manual Page -- http://www.php.net/manual/en/function.mysql-query.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52667 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52667&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52667&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52667&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52667&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52667&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52667&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#89148) next »