='$todayMySQL' order by sq is NULL DESC, sq"; } $result = $db->query($sql); if (!$result){ print ("SQLの実行に失敗しました:ショップニュース一覧読出
"); print('$sql='.$sql.'
'); exit; } else { $news_data = $result->fetchAll(PDO::FETCH_ASSOC); } $page_html = str_replace('###NEWSLIST###', listShopNews($news_data), $page_html); $page_html = str_replace('###TAB0###', $tab[0], $page_html); $page_html = str_replace('###TAB1###', $tab[1], $page_html); $page_html = str_replace('###TAB2###', $tab[2], $page_html); print(Qde($page_html)); ?>