|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-11-12 17:36 UTC] jani@php.net
[2009-11-12 19:16 UTC] arrshadowman at msn dot com
[2009-11-12 21:40 UTC] jani@php.net
[2009-11-20 01:00 UTC] php-bugs at lists dot php dot net
[2010-08-18 12:27 UTC] andrey@php.net
-Status: No Feedback
+Status: Bogus
[2010-08-18 12:27 UTC] andrey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 18:00:02 2025 UTC |
Description: ------------ I'm running a developer setup on my PC. PHP 5.211 and MySQL 5.1 with Windows IIS. For some reason I can run direct queries on the MySQL Command Line Client, but using PHP in IE and FireFox, the query does send anything back. It connects to the database, as the ID counter increments everytime I load the page, but the table data returns nothing. Reproduce code: --------------- --- From manual page: function.mysql-query#Return Values --- $con = mysql_connect("localhost","root@localhost",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("nsc_db", $con); $result = mysql_query("SELECT * FROM emails", $con); while ($row = mysql_fetch_array($result)); { echo $row['fname']."<BR>".$row['lname']."<BR>".$row['address']."<BR>".$row['age']; } Expected result: ---------------- The full list from table 'emails'. Actual result: -------------- nothing but the <BR> carriage returns.