CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 error after converting from .net to php

Print topic Send  topic

Author Message
xyla_eu

Posts: 1
Posted: 07/25/2007, 1:48 PM

Hi,

I use the following SQL:

SELECT *
FROM (calendar INNER JOIN training ON
calendar.training_id = training.training_id) INNER JOIN training_cities ON
calendar.city_id = training_cities.city_id
WHERE calendar.start_date > '{start_date}'
ORDER BY rand()

SQL Parameters:
Name: start_date
Type: URL
Source: start_date
Default value: (NOW)

In .NET vb this works fine. In PHP I get the following error...

The value in field urlstart_date is not valid. Use the following format: ShortDate.

I have no clue about what's going wrong


View profile  Send private message
Tuong Do
Posted: 07/25/2007, 4:28 PM

Now() is a function in .NET

It may not a function in PHP

"xyla_eu" <xyla_eu@forum.codecharge> wrote in message
news:246a7b72183e39@news.codecharge.com...
> Hi,
>
> I use the following SQL:
>
> SELECT *
> FROM (calendar INNER JOIN training ON
> calendar.training_id = training.training_id) INNER JOIN training_cities ON
> calendar.city_id = training_cities.city_id
> WHERE calendar.start_date > '{start_date}'
> ORDER BY rand()
>
> SQL Parameters:
> Name: start_date
> Type: URL
> Source: start_date
> Default value: (NOW)
>
> In .NET vb this works fine. In PHP I get the following error...
>
> The value in field urlstart_date is not valid. Use the following format:
> ShortDate.
>
> I have no clue about what's going wrong
>
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

mamboBROWN


Posts: 1713
Posted: 07/25/2007, 8:40 PM

xyla_eu
Tuong Do is correct Now() is not a function in PHP but it is a function in MySQL.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.