Jump to content

UTC_DATE()


Guest Tim_Christopher

Recommended Posts

Guest Tim_Christopher


 $conn = db_connect();

 $query = "SELECT eventDate, eventName FROM tblEvents WHERE eventDate >= \'UTC_DATE()\' ORDER BY eventDate";

 $result = mysql_query($query) or die(mysql_error());

 

 

How do I edit the above query to show only the events that are either greater than or equal to the current date?

 

eventDate is a date field in the database stored in yyyy-mm-dd format... Just realised that I\'m using MySQL version 4.0.1-standard, and I need 4.1.1 :-(

 

Is there an easy way to mimic UTC_DATE() using functions that are available in earlier versions?

Link to comment
https://forums.phpfreaks.com/topic/1073-utc_date/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.