Jump to content

[SOLVED] help.


seany123

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/157867-solved-help/page/2/#findComment-833203
Share on other sites

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();
    }

 

 

Link to comment
https://forums.phpfreaks.com/topic/157867-solved-help/page/2/#findComment-833235
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.