Renari
Member
Code:
$query = $db->query("SELECT * FROM `xf_user_field_value`");
while ($userdata = $query->fetch())
{
$user = $db->fetchRow("SELECT * FROM xf_user WHERE user_id = ?", $userdata['user_id']);
}
The above code, never reaches the second iteration of the while loop, my only understanding for this is that fetchRow is overwriting the query. Does anyone know why this is happening or an alternative way to do this. It's entirely possible that this isn't even my problem (there's more code than this but it shouldn't effect the loop causing it to never reach it's next iteration).