krispykreme Posted July 25, 2008 Share Posted July 25, 2008 $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 More sharing options...
DeanWhitehouse Posted July 25, 2008 Share Posted July 25, 2008 is the field name correct? and/or try $signature = $userinfo['signature']; // this doesnt Link to comment https://forums.phpfreaks.com/topic/116513-need-help-getting-variable-from-query/#findComment-599129 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.