View Full Version : SOLVED cant fetch userid with bbuserinfo SOLVED

12 Jan 2010, 15:04
trying to fetch data from db using

$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

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

without the ' ' around userid works, if i add ' and ' around the result is null