I have a problems of comparing dates in mysql.Can anyone help me out?
the codes goes like this:
Code:
function getlocal()
                      {
$sql = mysql_query("SELECT * FROM tbl_localnews");
$result = $sql;
return $result;
                      }

 <?php
							$result = getlocal();
							$new = $result[0]['dates'];
while($row = mysql_fetch_array($result)){
...