session_start(); header("Expires: Fri, 18 Aug 2000 00:00:00 GMT"); include("../connectdb.inc.php"); include("./checkdevice.inc.php"); $query = "SELECT `embed` FROM `youtube` WHERE `active` = 'y' ORDER BY `mdate` DESC "; $result = mysql_query($query,$conn); while ($row=mysql_fetch_object($result)){ $embeds[] = $row->embed; } $query1 = "SELECT `fname5`, `imagename` FROM `colddish` WHERE `active` = 'y' ORDER BY `imagename` ASC "; $result1 = mysql_query($query1,$conn); while ($row=mysql_fetch_object($result1)){ $f1names[] = $row->fname5; $f1images[] = $row->imagename; } $query2 = "SELECT `fname5`, `imagename` FROM `maindish` WHERE `active` = 'y' ORDER BY `type` ASC, `imagename` ASC "; $result2 = mysql_query($query2,$conn); while ($row=mysql_fetch_object($result2)){ $f2names[] = $row->fname5; $f2images[] = $row->imagename; } $query3 = "SELECT `fname5`, `imagename` FROM `dimsum` WHERE `active` = 'y' ORDER BY `imagename` ASC "; $result3 = mysql_query($query3,$conn); while ($row=mysql_fetch_object($result3)){ $f3names[] = $row->fname5; $f3images[] = $row->imagename; } $query4 = "SELECT `fname5`, `imagename` FROM `dessert` WHERE `active` = 'y' ORDER BY `imagename` ASC "; $result4 = mysql_query($query4,$conn); while ($row=mysql_fetch_object($result4)){ $f4names[] = $row->fname5; $f4images[] = $row->imagename; } ?>
if ($tablet == true){ echo " \n"; } if ($ipad == true){ echo " \n"; } ?>