Hi I have a form which submits the year, month and day. What I am trying to do is make year, month, and day a single string instead of 3 seperate ones and call it $yearmonthday. This is because I want to use that variable when selecting data from my database using a LIKE query. Can anyone help??
Thanks
$yearmonthday == $year.$month.$day;
echo '$yearmonthday';
$query = "SELECT * FROM orders WHERE order_date LIKE '$yearmonthday%' ORDER BY order_id ASC";