Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 12 Jan 2010, 14:04
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Real name: Martin
SOLVED cant fetch userid with bbuserinfo SOLVED

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 12 Jan 2010 at 14:13 ---------------

solved it


$vbulletin->userinfo[userid]
without the ' ' around userid works, if i add ' and ' around the result is null
__________________
My website Evisystems
2013 - I'll be leaving VB, to much of a hassle using it
follow the white rabbit, feed! your head

Last edited by Vaupell : 12 Jan 2010 at 14:13. Reason: Auto-Merged DoublePost
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 11:17.

Layout Options | Width: Wide Color: