Hello
I have a simple query set up which selects all records from a table based on a criteria. Strange thing is, with a handful of users, not all records are displayed 'sometimes'. They have to click on 'refresh' on their browsers and the rest of the records show up. Any ideas as to any work-arounds? Im using msql_fetch_array.
Cheerss
<?php include("dbconnect.php"); ?>
<?
$result = mysql_query("select * from post where course='computing' ORDER by title");
if ($result){
//echo ":<br><p></p>";
echo "<table width=90% align=center border=1><tr>
<td align=left bgcolor=#FFFFFF><b><font face='Verdana'' size='2' color='#000080'>Book Title</font></b></td>
<td align=left bgcolor=#FFFFFF><b><font face='Verdana' size='2'>Author
</font></b></td>
<td align=left bgcolor=#FFFFFF><b><font face='Verdana' size='2' color='#000080'>Author 2</font></b></td>
<td align=left bgcolor=#FFFFFF><b><font face='Verdana' size='2' color='#000080'>Selling Price</font></b></td>
<td align=left bgcolor=#FFFFFF><b><font face='Verdana' size='2' color='#000080'>Request!</font></b></td>
</tr>";
while ($row = mysql_fetch_array($result)) {
echo"
<tr>
<td><font size='2' face='Verdana'>$row[title]</font></td>
<td><font size='2' face='Verdana'>$row[author1]</font></td>
<td><font size='2' face='Verdana'>$row[author2]</font></td>
<td><font size='2' face='Verdana'>$row[our_price]</font></td>
<td><font size='2' face='Verdana'><a href=\"request_book.php?book_id=$row[book_id]\">More Info</a></font></td>
<td><font size='2' face='Verdana'>
</tr>";
} echo "</table>";
} else {
echo "No data.";
}
mysql_free_result($result);
?>