Re: Your concern with:
if (mysql_fetch_assoc($request))
{
//The first row was removed in the check, you're one short!
while ($row = mysql_fetch_assoc($request))
{
echo 'In WHILE loop';
}
}
You don't need the if statement. Start with the while test.
while ($row = mysql_fetch_assoc($request))
{
echo 'In WHILE loop';
}
If no rows were returned by the query, the while loop won't execute.