Ken2k7 Posted May 12, 2009 Share Posted May 12, 2009 Oh, dude, $player->ncolorid is different than $player['ncolorid']. Quote Link to comment Share on other sites More sharing options...
seany123 Posted May 13, 2009 Author Share Posted May 13, 2009 Oh, dude, $player->ncolorid is different than $player['ncolorid']. apart from the way its written how is it any different? for example i thought that the $player-> $player[''] do the same thing. Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 13, 2009 Share Posted May 13, 2009 apart from the way its written how is it any different? for example i thought that the $player-> $player[''] do the same thing. Rather than asking that question, you could have ran a test and would have found out the answer yourself. It's something good to know in the future. It's not exactly a hard test. Quote Link to comment Share on other sites More sharing options...
seany123 Posted May 13, 2009 Author Share Posted May 13, 2009 this still doesnt explain why this all isnt working. Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 13, 2009 Share Posted May 13, 2009 It doesn't? Mind posting more of your code? We can't debug that one-liner and explain why it doesn't work. Quote Link to comment Share on other sites More sharing options...
seany123 Posted May 13, 2009 Author Share Posted May 13, 2009 well the only thing i can think of which could be causing an issue is the query which assigns $profile. so here it is... $query = $db->execute("select `id`, `username`, `registered`, `level`, `kills`, `deaths`, `hp`, `maxhp`, `rm`, `staff`, `ncolor`, `money`, `gender`, `quote`, `crimes_failed`, `crimes_sucess`, `avatar`, `last_active`, `prison`, `hospital`, `signature`, `rating`, `city_id` from `players` where `username`=?", array($_GET['id'])); if ($query->recordcount() == 0) { header("Location: members.php"); } else { $profile = $query->fetchrow(); } Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 13, 2009 Share Posted May 13, 2009 Where's the $profile->ncolorid part? Quote Link to comment Share on other sites More sharing options...
seany123 Posted May 13, 2009 Author Share Posted May 13, 2009 omg i feel like crying... i forgot to add it in the query >.< for the past few hours ive been trying to fix why it wasnt working and it ended up being of of the most simple things.... thanks for all help of this. Seany123 Quote Link to comment 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.