php SQLデーター無い場合の処理

| コメント(0)

}else{
    echo "<div id=\"containermid\">";//カラム幅制御
    echo "<div id=\"category1\">";//カラム幅制御
    print "<html>";
         print "<head><title>エラー</title></head>";
         print "<body>";
         print "<br>";
         print "<br>";
         print "<br>";
         print "<br>";
         print "<br>";
         print "ID取得エラー";
         print "<table style=\"border:0;\">";
         print "<form action=\"share_top.php\" method=\"post\">";
         print "<input type=\"hidden\" name=\"searchdo\" value=\"view\">";
         print "<input type=\"hidden\" name=\"year\" value='".$Yearput."'>";
         print "<input type=\"hidden\" name=\"monthsale\" value='".$prefMonth."'>";
         print "<td style=\"border:0;\">";
         print "<h4><input type=\"submit\" name=\"submit\" value=\"戻る売上比率\"></h4>";
         print "</td>";
         print "</form>";
         print "</table>";
         print "</body>";
         print "</html>";
         exit;
  }
mysql_free_result($resultb);

コメントする