UNIX_TIMESTAMP(NOW()) OR UNIX_TIMESTAMP(expires) = 0"; $query = mysql_query($sql); if(mysql_num_rows($query) > 0) { $output = ""; while($result=mysql_fetch_assoc($query)) { $output .= "
"; $output .= "".$result['name'].""; $output .= ""; $output .= ""; list($width, $height, $type, $attr) = getimagesize($result['image']); if($width > 180) { $image_width = 180; } else { $image_width = $width; } if($result['date'] > 0) { $expires = "Expires: ".date("M-d-Y", $result['date']); } else { $expires = ""; } $output .= ""; $output .= ""; $output .= ""; $output .= "
".$result[

".$result['desc']."

".$result['price']."".$expires."Click here to get this deal
"; $output .= "
"; } } else { $output = "

No deals found

"; } ?> Tucson Travel Deals by J.O.G.S.