Hi. I'm running into one of the strangest problems I've ever had with PHP and MySQL... I have a query on a page that I'm building that selects data from a database. It is supposed to select one column from one row of data. I have tested the select query with MySQL, and it works perfectly everytime, as it does with mysql_query("the query").
The problem seems to be with mysql_fetch_array($result), which I'm calling afterwards. Around 1/5 times, it returns what I am expecting and the other 4 times it returns nothing. The data in the table is not changing at all, and neither is the query.
I go to the page, and the data doesn't show up. I reload a few times, and all of a sudden there it is. I reload again and it's gone. Reload a few more times, and it's there again. This makes no sense to me whatsoever.
Any ideas?