Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
mysqlからこれを表示する方法..??
$sql=mysql_query("SELECT * FROM tour_table WHERE visited_date BETWEEN '" . $date1_ob . "' AND '" . $date2_ob . "'");
以下を使用してみてください。正しい形式であると想定$date1_obしています$date2_ob
$date1_ob
$date2_ob
$sql=mysql_query("SELECT * FROM tour_table WHERE visited_date >='" . $date1_ob . "' AND visited_date <= '" . $date2_ob . "'");