Jump to content

MYSQL WHERE STATEMENT


pgrevents

Recommended Posts

I have a field which I am trying to sort to show the last seven days and I have hit a stubmling block can anyone help please

 

<?php
$date =date('Y-m-d');
$time = date('h:i:s');
$query = mysql_query("select * FROM programme  WHERE expiry <='$dateT$timeZ' ");
?>

 

The field expiry all content is like this 2009-06-15T16:24:00Z

 

Now the code executes but its not showing what I am wanting its showing the fields that are empty is there anyway to make this to work

Link to comment
https://forums.phpfreaks.com/topic/162202-mysql-where-statement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.