Vaupell
01-12-2010, 01:04 PM
trying to fetch data from db using
$nowUser=$BBuserinfo[userid];
$data=db$->query_first("SELECT fieldEG1 FROM " . TABLE_PREFIX . "user where userid='".$nowUser."'");
but its comes up with '' empty of blank tags.
tryed a test where i just went
$nowUser=$BBuserinfo[userid];
and registered it into a templater and rendered it,
called it in the template using vb:raw but it came up empty.
so i though maybe add ' ' around userid but didnt change anything / same result..
any ideas ?
--------------- Added 1263309183 at 1263309183 ---------------
solved it
$vbulletin->userinfo[userid]
without the ' ' around userid works, if i add ' and ' around the result is null
$nowUser=$BBuserinfo[userid];
$data=db$->query_first("SELECT fieldEG1 FROM " . TABLE_PREFIX . "user where userid='".$nowUser."'");
but its comes up with '' empty of blank tags.
tryed a test where i just went
$nowUser=$BBuserinfo[userid];
and registered it into a templater and rendered it,
called it in the template using vb:raw but it came up empty.
so i though maybe add ' ' around userid but didnt change anything / same result..
any ideas ?
--------------- Added 1263309183 at 1263309183 ---------------
solved it
$vbulletin->userinfo[userid]
without the ' ' around userid works, if i add ' and ' around the result is null