-2

現在の日付のみのデータベースからデータを選択し、その後は明日の日付のデータベースを持っています

$query = mysql_query("SELECT      PatientMaster.PatientFirstName,PatientMaster.PatientLastName,PatientMaster.PatientID,ProviderAppointmentListings.ProviderNPI,ProviderAppointmentListings.AppointmentTime,ProviderAppointmentListings.AppointmentListingsID, '' FROM PatientMaster JOIN ProviderAppointmentListings ON PatientMaster.PatientID = ProviderAppointmentListings.PatientId LIMIT 0, 30");



$rows = array();
while($row = mysql_fetch_assoc($query)) {
$rows[] = $row;
}
echo json_encode($rows);
4

2 に答える 2

1
WHERE YOUR_DATE_FIELD=CURDATE() or YOUR_DATE_FIELD=CURDATE()+ INTERVAL 1 DAY
于 2012-04-09T07:06:21.203 に答える
0

SELECT * FROM tablename WHERE TO_DAYS(columnname) between TO_DAYS(NOW()) と TO_DAYS(NOW())+1

于 2012-04-09T07:20:57.780 に答える