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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.