This script will call rows that have not been updated today.
How can I call just rows in the catagory news that have not been updated today?
$todaydate = mktime (0,0,0,date("m"),date("d"),date("Y"));
$catagory = "news"
//go to database and get item for today's date if it exists
$dep_list = "SELECT * FROM $DB_TBLName WHERE last_updated = $todaydate";
$result1 = @mysql_query($dep_list, $dep_list_b, $ALT_Connect)
or die("Couldn't execute query #1");
//set var to 'none' so we can check it later
//we'll check if no content for today's date is found in the database
$last_updated = "none";
//start of db loop
while ($row = mysql_fetch_array($result1)) {
$last_updated = $row['$last_updated'];
$grabbedContent = $row['content'];
//strip slashes from content
//this is important because addslashes() is used before
//saving the content in the database
$grabbedContent = stripslashes($grabbedContent);
}
//end of db loop
//if there's no content for this date/time saved in the database
//then do somthing else
If($date_updated=="none"){
Thanks
edit- Have I post in the rong place?