Jump to content

need help getting variable from query


krispykreme

Recommended Posts

$userinfo = mysql_fetch_array(mysql_query("select $tab[pimp].*,users.signature from $tab[pimp] join users on $tab[pimp].code = users.code WHERE $tab[pimp].id=$threadinfo[user_id];"));

 

 

$puser = "$userinfo[pimp]"; //this works

$posts = "$userinfo[posts]"; //this works

$avatar = "$userinfo[avatar]"; // this works

 

$signature = "$userinfo[signature]"; // this doesnt

 

 

So how can i get this from it?  In the database it is a TEXT variable if that makes a difference..

 

this is the first time ive used a JOIN

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/116513-need-help-getting-variable-from-query/
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.