close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

ProductStartDate & End Date

Thread began 6/17/2012 11:27 am by SuperSoaker | Last modified 6/21/2012 8:30 am by Jason Byrnes | 1908 views | 8 replies |

SuperSoaker

ProductStartDate & End Date

In my search page what value do i use to get "current date"? and can I add "time" to the search page and how to combine date and time on the insert or update form? This will allow the client to choose start and end dates and times

Thanks Jason

Sign in to reply to this post

Jason ByrnesWebAssist

to get current date use the following code:

php:
<?php echo(date("m/d/Y"); ?>




using time in your search depends on how the data base is set up, if you want to have a separate input for date and another for time in your search, you will need 2 separate fields in the database. one set to use the Date data type, and the other set to use the Time data type.

Sign in to reply to this post

SuperSoaker

Does date and time need to been inner joined

Jason,

How would I bind the date and time, my search is using AND so it needs to be start date = date and time and end would be same,

To enable my client enter start and stop date and time

Thanks

Jason really appricate your help

Sign in to reply to this post

SuperSoaker

Added recommended code - got error

I added the <?php echo(date("m/d/Y"); ?> to the value of startDate and endDate, throws a syntax error. I added this in the DataAssist search popup box.

Not sure if it makes a difference the date format in my database is year/Month/Day and the trigger is Before Page Load. Basically I have a page display items display from category AND date start AND date end

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

code is missing a ):

<?php echo(date("m/d/Y")); ?>


if the format in your database is year/Month/Day

then the date code should use that format to:

<?php echo(date("Y/m/d")); ?>


see this page for formatting information:

function.date.php

Sign in to reply to this post

SuperSoaker

Still not working

products_results2.php this is the page link, with the setting i have 1 tounament should show (march tourn)

Please help

start and end date to display

Attached Files
products_results2 (2).zip
Sign in to reply to this post

Jason ByrnesWebAssist

a blank page means that a php error is occurring but error reporting is turned off.

to turn error reporting on, add the following code at line 1:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>



once we know what the error is, we will be able to troubleshoot the cause.

Sign in to reply to this post

SuperSoaker

No Errors

I put in the error reporting code, no errors?

My search works fine with TournamentDisplayStart and take out the TournamentDisplayEnd, but when it's in place with a Lessor Than or equal it's blank? I'm using AND as my separator?

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

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