Solved: 5 Years, 4 Weeks ago Database Methods, Help Please
#1
Solved: 5 Years, 4 Weeks ago
This is the code I have
$query = $db->simple_select("users", "username", "uid='1'");

$settings = $db->fetch_array($query);

print_r($settings);

Now it is displaying in an array. I just need this code to simply print just the username of uid 1, How could I do this? Thank you.
Reply
#2
Solved: 5 Years, 4 Weeks ago
Try $db->fetch_field()
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)