PDA

View Full Version : Unable to get userinfo for certain ids


jdelator
02-02-2009, 04:09 AM
I don't understand why this will work


$fetchuserid = 2;
fetch_userinfo($fetchuserid);


why this won't

$fetchuserid = 121;
fetch_userinfo($fetchuserid);


Also I don't understand why this works


$userid = 2;
$query = "SELECT userid, username, password, salt, email FROM " . TABLE_PREFIX . "user WHERE userid=" . $userid;

$user = $db->query_first($query);


while this doesn't

$userid = 121;
$query = "SELECT userid, username, password, salt, email FROM " . TABLE_PREFIX . "user WHERE userid=" . $userid;

$user = $db->query_first($query);


A user with userid 121 does exist and I can access this through phpmyadmin or regular mysql_* functions.

I think there is a bug.


EDIT: I was using my test forums and not the live forums. Silly mistake on my part.

/FACEPALM