0

I have a table called "reservations" containing columns

id
serviceID
dateCreated
name
email
phone
comments

I want to that user can select date from "dateCreated" (dropdown) and then show the results. Right now I have this

$tbl_name = "reservations"; "$select = SELECT * FROM `".$tbl_name."` LIMIT 0 , 30"; 

What should I do?

1 Answer 1

1

You will want to use a WHERE dateCreated = $date where $date equals the user provided date. However, you will want to look at prepared queries to prevent SQL injections from the user input.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.