Hello everybody,
I figured out the solution for this one, here it is......
First, i got the weekday with this piece of code:
$today = getdate();
$day = $today['weekday'];
and now i used switch statement in order to execute the query based on the weekday, something like:
switch($day)
{ case "Monday":
$query="SELECT introtext,zipcode,image,telephone,description FROM tbl_personals ORDER BY id Limit 5,6";
$numresults=mysql_query($query,$connection);
$numrows=mysql_num_rows($numresults);
break;
//and so on with the other cases....
}
Thats it, aint it simple?🙂