ID:               48157
 Updated by:       j...@php.net
 Reported By:      milton at theblokgroup dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         MySQL related
 Operating System: Fedora
 PHP Version:      5.2.9
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




Previous Comments:
------------------------------------------------------------------------

[2009-05-05 21:01:20] milton at theblokgroup dot com

Description:
------------
Hi, I have created a basic php script that queries a mysql database and
displays the information using a while loop.

Sometimes, when a user visits the website page, none of the queries
show up but once you refresh the page, they appear.

I have modified max_connections in my.cnf, that is not the problem.  I
have also tried recoding it, that didn't help.  Any suggestions would be
great!

Reproduce code:
---------------
<?php
$sqlrecc = mysql_query("SELECT * FROM events WHERE active = '1' AND
home = '1' ORDER BY first_date ASC LIMIT 5");
while($rowrecc = mysql_fetch_assoc($sqlrecc))
{
echo "<p><a
href=\"viewevent.php?id=".$rowrecc['id']."\">".ucwords($rowrecc['event_name'])."
&raquo;</a><br />";
echo
ucwords($rowrecc['event_date'])."<br/>".ucwords($rowrecc['location'])."</p>";
}
?>

Expected result:
----------------
The data should always appear.

Actual result:
--------------
The link to the actual page is: http://www.latinograduate.com/index.php


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48157&edit=1

Reply via email to