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.
基本的に私がする必要があるのは、日付/時刻の間の結果を見つけるためにユーザーが選択した任意の日付に時刻00:01を追加することですが、誰かが私を助けることができますか?
次のような日付の00:01のタイムスタンプを取得できます。
$timestamp = strtotime($date_from_user . ' 00:01');
次に、を使用してそのタイムスタンプを必要に応じてフォーマットできますが、date()おそらくそれを行う必要はありません。
date()
SELECT * FROM table WHERE datecol BETWEEN '$date1' AND '$date2'