Call to a member function fetch_assoc() on a non-object
Posted
by Joann
on Stack Overflow
See other posts from Stack Overflow
or by Joann
Published on 2010-05-15T16:04:36Z
Indexed on
2010/05/15
16:14 UTC
Read the original article
Hit count: 209
php
I'm a super beginner. I did find related questions here but I think they're too advanced for my skills. :-(
Here's my function:
function get_fname($un){
$registerquery = $this->conn->query("SELECT f_name FROM tz_members WHERE
usr='".$un."'");
while ($row = $registerquery->fetch_assoc()) {
return $fname = $row[$un];
}
}
Any help plsss??
© Stack Overflow or respective owner