Compare timestamp with date in php
<p>i have this code which permits me to retrieve all the information in which the timestamp regarding that information is equal to another date.</p>

<p>Here is the code:</p>

<pre><code>$information="SELECT * FROM scheda_anagrafica WHERE FROM_UNIXTIME('time_inserted','%d-%m-%Y') = '" . $giorno_selcted. "'
 "; 
$result1 = mysql_query($information) or die (mysql_error());
while( $row = mysql_fetch_array($result1)) {

    echo $row['information1'];

}
</code></pre>

<p>giorno_selected prints something like: 25-09-2012
What am i doing wrong here?
Thanks!</p>
