View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Populate Recordset only if current DATE and TIME matches

Thread began 10/30/2009 10:01 am by info305726 | Last modified 11/02/2009 7:32 pm by info305726 | 2008 views | 17 replies

info305726

Hi Jason,

Thank you for your reply.

I have carried out your instructions and I can see that the SQL is being run using the recordset echo command as you directed.

I have also installed the MySQL Tools Query Browser and took that SQL command being used in the recordset and ran it directly and I get no data result.

I'm not sure why it isnt working?

If I insert a record into the table with the following value in dueDateTime of "2009-11-02 20:35:00" and run the following SQL in the query browser:

SELECT * FROM tasks WHERE tasks.dueDateTime = DATE_FORMAT(NOW(), '%d-%m-%y %h:%m')

and I wait for the computers clock to reach 20:35 and run the query at that time nothing is retrieved from the databse.

If I run the following SQL in the query browser:

SELECT * FROM tasks WHERE tasks.dueDateTime = "2009-11-02 20:35"

The record is retrieved and shown.


it's like the NOW() function isnt working as it doesnt appear to be using the current date/time of the computer (which is also where the MySql database is running from).

if I do a cmd prompt DATE on the computer I get: 02/11/2009
if I do a cmd prompt TIME on the computer I get: 20:35:23

I'm unsure as to why it isnt working!

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...