I ran into a strange problem. I fixed it myself, but I am still curious why it occurs. I thought someone here on StackOverflow might be able to confirm it. I am using something like this in my project :
$users = mysql_query("select * from user where user_id = '$_GET[id]'") or die("Connection Error");
while($user = mysql_fetch_array($users))
$user_activated = $user['user_activated'];
// For testing purpose. This is not my original code but it's in the same sequence.
while($user = mysql_fetch_array($users))
echo "Test".
The echo "Test" never happens. Should there be any change happening to the $users array? Or is it automatically erased? I never came across anything quite like it. Can anyone provide some intuition into this?
Thank you!