Hi folks,
I am having issues with an if statement. Here is the code. The first echo displays the value 4. Why won't my if statment fire?
Thanks in advance for your help!
-Tim
$q2 = "select type from i6users where id = $i6token[uid]";
$result2 = mysql_query($q2,$i6link);
while($row2 = mysql_fetch_array($result2))
{
echo "$row2[type]";
}
if ($row2[type] == 4){
echo "blah";
}