DB Query
$query="select * from table WHERE id=$id";
$db = new DB();
if (!$db->open()){
die($db->error());
}
if (!$this->db->query($query)){
trigger_error($this->db->error(), E_USER_ERROR);
die("Database Error");
}
if($db->numRow()){
while($row=$db->fetchAssoc()){
//do stuff
}
}
$last_inserted_id=$db->getID();
This entry was posted
on Friday, April 17th, 2009 at 9:18 pm and is filed under Enta.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.