[php] Ajax chat icons

Posts 1–3 of 3 · Page 1 of 1
[php] Ajax chat icons
Code:
function get_pokeman(){
        global $db, $user;

        switch ($user->data['user_id']){
           case 2:
                  $pmn = '<img src="ttp://www.pokemonelite2000.com/sprites/dpiconani/dpiconani487.gif">';
           break;
           case 4471: //just a test
                  $pmn = '<img src="http://www.pokemonelite2000.com/sprites/dpiconani/dpiconani487.gif">';
           break;
		}

      if(!isset($pmn)){
            return $user->data['username'];
}
            else{
                 return $pmn . $user->data['username'];
          }
}
Its a custom function, I'm doing something is wrong, but i cant figure out what. The icon will not show up next to the username. Please help
You're not closing the img tags for one thing. Other than that you gave us very little info lol.
for one
Well im trying to achieve adding chat icons to my ajax chatbox. hoping someone could help me figure out why this isnt working at all, even after i closed the img tags still no luck . Dunno what else i should be telling ya.
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?