Miscellany
public php v1 · immutable function Query($sql, $args='') { if($args) { if(!is_array($args)) { $args = array($args); } if(is_array($args)) { $sql = $this->ProcessQuery($sql, $args); } } if(($result = mysql_query($sql, $this->db_obj)) === FALSE) { trigger_error("There was an error processing your query:". $this->error); return FALSE; } $data = array(); while($row = mysql_fetch_assoc($result)) { $data[] = $row; } return $data; }