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
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
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.