Any idea why this wont work? I have a feeling its the row name I have given it. It doesnt echo anything
$result = mysql_query("SELECT UNIX_TIMESTAMP(datetime) FROM voters WHERE ip='$ip'") or die(mysql_error());
while($row = mysql_fetch_array($result)) {
$unixtimestamp = $row['UNIX_TIMESTAMP(datetime)'];
echo $unixtimestamp;
}