Topic: PHP related question
$temp = $db->query('SELECT uid, tid FROM posts_read WHERE uid='.$pun_user['id'].' AND tid='.$cur_topic['tid']) or error('Unable to fetch topic info', __FILE__, __LINE__, $db->error());
$atid = $db->fetch_row($temp);
print($atid);
exit();
output:
"Array"
print($db->fetch_row($db->query('SELECT uid, tid FROM posts_read WHERE uid='.$pun_user['id'].' AND tid='.$cur_topic['tid']) or error('Unable to fetch topic info', __FILE__, __LINE__, $db->error())));
exit;
output:
""
Why, why, why ~.~ I understand that in the end, $temp exists, but I don't want to have to type it, and worry about the other $temps in the same scope, etc... I thought php was supposed to be getting closer to c/c++...