how to store the query in the db and execute it at a certain time php/mysql

It would have 2 multiple select boxes to select 1 or more cities and 1 or more property types, user would type first name, last name and his/her email in and subscribe.
Can you please help me i'm confused - how to get that criteria from boxes, get it compared to the data in the db , how to store that query and get it sent every day around midnight.

That should cover the basics. I've just written this off the top of my head, so it's not tested or anything. You need to look up how to set up a cron job (plenty of examples in EE), and you need to set up the database appropriately and connect to it. Some error checking and validation would be a good idea (using $_REQUEST elements directly in SQL is not a good habit). It's using PHPMailer, which you'll need to download from here: http://phpmailer.sourceforge.net/

It works only when there is a single city or single property type - with multiple - nope
This is how the table looks like...
sub_ID first_name last_name sub_email sub_cities sub_types
5 John Wayne2 contact@mine-it.com TORONTO Residential
4 John Wayne1 john@mine-it.com BRAMPTON,TORONTO Residential

is there some other way to query it or it has to be using IN, or if i missed some quotes (putting {} doesn't change anything)??
Thank you

OK i realized that cities have to have qoutes in order to get things working
'BRAMPTON', 'TORONTO'
i'm struggling to get them inserted into DB in that format now..
this is the insertions part
$query = "INSERT INTO re2_notifications SET
first_name = '$_POST[f_name]',
last_name = '$_POST[l_name]',
sub_email = '$_POST[semail]',
sub_cities = '".implode(',', $_POST[s_city])."',
sub_types = '".implode(',', $_POST[s_pt])."'";
mysql_query($query);

Popularity Can Be Measured
Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients. This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …

Both Easy and Powerful
How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php) Very easy. It has been described as "a programming language even my grandmother can use."
How powerful is PHP? http://en.wikiped…