This piece of code works
$date = "12/09/2016";
$sql = "SELECT * FROM someTable.forum_posts_queue where post_owner='admin' and post_create_time = '".$date."' order by post_id desc limit 0,1";
However, I wanted to set the date as a variable and pass it in as a string
$date = date("m/d/Y");
$sql = "SELECT * FROM someTable.forum_posts_queue where post_owner='admin' and post_create_time = '".$date."' order by post_id desc limit 0,1";
This doesn't read the date as the same above, and doesn't understand the query.
YYYY-MM-DDare you sure$date = "12/09/2016";works? The formatMM-DD-YYYYisn't logical anywhere, its just the way Americans say a date and the confusion is something we call have to put up with