Answered
error code by CS3
I have a problem when trying to find a set of dates within a
range - first and last.
The dates are stored in photodate in the format yyyymmdd 00:00:00.
The SQL is as follows:
SELECT shipname
FROM allships
WHERE allships.photodate BETWEEN first AND last.
First is defined as a variable with a run time value of #first#
Last is similarly defined as #last#.
This works fine when tested as a recordset., but the CS3 produced code produces an error at run time
Parse error: syntax error, unexpected '=', expecting ',' or ')' in C:\htdocs\shipsphp\phpfiles\testit.php on line 34
Line 34 is $first_Recordset1 = #first#;
Looks like it cannot find #first# - but when the sending form is set to get it sends it OK.
Can anyone throw me a life line?
The code for Data entry:
The dates are stored in photodate in the format yyyymmdd 00:00:00.
The SQL is as follows:
SELECT shipname
FROM allships
WHERE allships.photodate BETWEEN first AND last.
First is defined as a variable with a run time value of #first#
Last is similarly defined as #last#.
This works fine when tested as a recordset., but the CS3 produced code produces an error at run time
Parse error: syntax error, unexpected '=', expecting ',' or ')' in C:\htdocs\shipsphp\phpfiles\testit.php on line 34
Line 34 is $first_Recordset1 = #first#;
Looks like it cannot find #first# - but when the sending form is set to get it sends it OK.
Can anyone throw me a life line?
The code for Data entry:
