TeddyKiller Posted March 26, 2010 Share Posted March 26, 2010 The PHP code echo's "none", and I don't know why I have a row in the database, it just echo's none? Sorry for lack of information, I'm competely stumped.. <?php include("lib.php"); $player = check_user($secret_key, $db); $query = $db->execute("select * from `skills` where `type`='spells' and `user_id`=?", array($player->id)) or die("query failed: ". mysql_error()); if($query->recordcount > 0){ while($row = $query->fetchrow()) { echo $row['name']; } } else { echo "none"; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/196656-whats-wrong-it-gets-no-rows-from-the-database/ Share on other sites More sharing options...
mikesta707 Posted March 26, 2010 Share Posted March 26, 2010 well clearly the query isn't finding anything. but since its all locked away in that class I can't be of much help without seeing the class internals Quote Link to comment https://forums.phpfreaks.com/topic/196656-whats-wrong-it-gets-no-rows-from-the-database/#findComment-1032500 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.