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 . "'");