Log in

View Full Version : trying to access custom field


dethfire
07-11-2005, 11:56 PM
In a hack I'm building I'm trying to read a member's custom field using

$userfield12 = $DB_site->query("SELECT field12 FROM userfield WHERE userid = 1343");

and then echoing $userfield12[field12] but nothing returns, if I use just $userfield12 I get "resource id #20" which is odd. What am I doing wrong?

Princeton
07-12-2005, 01:01 AM
use $DB_site->query_first