PHP: select from
Posted: Sunday 08 April 2018 16:39
Hi, i have a question about my SELECT from query, now it is:
i also have a date picker in my website:
i would love to have that the query is changed with the data that has been chosen from the date picker
Anyone that can help me or guide me in the right direction?
Thank you.
Code: Select all
$stmt = $mysqli->prepare("SELECT vaatwas, wasmachine, droogkast, aquarium, timestamp FROM Verbruik_Toestellen WHERE timestamp >= SYSDATE() - INTERVAL 1 DAY");
Code: Select all
<font size=2 face='Verdana'>Enter your date</font><input type=text name='p_name' size='8'> <a href="javascript:void(0);" NAME="plus2net Calendar" title=" plus2net Calendar " onClick=window.open("cal2.php","Ratting","width=350,height=270,left=150,top=200,toolbar=1,status=1,");>Click here to open the calendar window</a>
Anyone that can help me or guide me in the right direction?
Thank you.