Hello, I have the following code, with 6 rows in the database for my query, although the mysql_fetch_row function is only able to get 5 out in my web page. I'm not sure what is wrong with my code, here it is:
$connection = mysql_connect("my server", "user", "pass") or die("Cannot connect");
mysql_select_db("db", $connection) or die("Cannot select DB");
$owner = $_GET['name'];
$sql = "SELECT * FROM imageinfo WHERE owner = '$owner'";
$result = mysql_query($sql) or die("Could not get result");
$row = mysql_fetch_row($result);
while($row = mysql_fetch_row($result))
{
echo "$row[1], $row[2], $row[3], $row[0]";
echo "<br />";
}
When I do the exact same query in the phpMyAdmin interface I get 6 results, although my page is only displaying 5, I have no idea why.