Topic: Data Query???
I do not know much about how to query SQL data with these class things these forums use. I was wondering how to because I need to make data show up for equipped items on a user's posts.
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → Data Query???
I do not know much about how to query SQL data with these class things these forums use. I was wondering how to because I need to make data show up for equipped items on a user's posts.
$data = 'SELECT * FROM weapons WHERE u.user='.$id.' AS u.group IS g.id'; Let's pretend we pull all the weapons from the specific user(s).
$this_array = $db->fetch_assoc($data); Use the inherant shorthand to pull the info into the array.
echo $this_array['username'];
echo $this_array['level'];
echo $this_array['weapon'];
I hope I didn't misunderstand you.
The class list for the mysql shorthand is pretty simple:
$db->query/fetch_array/fetch_assoc/num_affected
Thanks this is exactly what I needed to know.
PunBB Forums → PunBB 1.2 troubleshooting → Data Query???
Powered by PunBB, supported by Informer Technologies, Inc.