phptest

= ‘$txtDateRange’ and (client Like ‘%$txtItem%’ OR class Like ‘%$txtItem%’)) “;
$SQL = $SQL . ” ORDER BY date DESC”;
$retid = mysql_db_query($db, $SQL, $cid);
$query=mysql_query(‘SHOW COLUMNS FROM classes ‘) or die(mysql_error());
$nf=1;
//iterate trough the query result and fetch each field
while($field=mysql_fetch_object($query)){
$fields[]=$field;//collect each field into a array
${‘f’.$nf} = $field->Field;
$nf++;
}

?>


Leave a Reply

Your email address will not be published. Required fields are marked *