Re: Need some help, Thanks
| From: | Chris Ilias | Date: | Fri, 03 Sep 2004 12:29:55 +0000 |
| Subject: | Re: Need some help, Thanks | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14387@lists.php.net to get a copy of this message | ||
David Kahn wrote:
$check = $db_object->query("SELECT user_name, passw FROM users WHERE user_name = '".$_POST['uname']."'"); There is no problem, However when I need to get an attribute from that query such as:var_dump($info); maybe de fetchmode is set to object and not to associated array reset ist before u fetch the row $db_object->setFetchMode(DB_FETCHMODE_ASSOC); $info = $check->fetchRow(); var_dump($info); peceee chris -- ---//---//---//---//---//---//---//---//---//---// Christoph Ilias email: mist@uep.at ------------------------------------------------- "Die meisten Probleme sitzen vor dem Bildschirm"$info = $check->fetchRow(); I get errors. It does not store a proper answer into the variable $info,rather it just stores the word "Object". try to display the variable with var_dump() like: