Code: Select all
function getRows($sql) {
$this->query($sql);
if (func_num_args()) {
$this->query(implode(func_get_args(), ', '));
}
$rows = array();
while ($row = mysql_fetch_assoc($this->result)) {
$rows[] = $row;
}
mysql_free_result($this->result);
return $rows;
}
Code: Select all
if (func_num_args()) {
$this->query(implode(func_get_args(), ', '));
}