PHP Parse Error

PHTech

Senior Member
Joined
Aug 21, 2006
Messages
588
Reaction score
0
Location
Witbank
Hi there...

After I have setup a page with a form, on clicking the the SUBMIT Button, I get the following error message:

Parse error: syntax error, unexpected '=', expecting ',' or ')' in C:\wamp\www\....\test.php on line 4

The code is as follows for line 4:

&query_rs_Date = "Select tbl_weeklymain.DateMain FROM tbl_weeklyMain GROUP BY tbl_weeklymain.DateMain";

Can't seem to find what the problem is... :confused:

Any help would be appreciated....
 
paste a few lines up, it could be line 3 giving issues and not line 4. dont always trust what it tells you

is it not $query and not &query?
 
Remember, you can't define a variable with the & character. Try replacing the line with the following:

PHP:
$query_rs_Date = "Select tbl_weeklymain.DateMain FROM tbl_weeklyMain GROUP BY tbl_weeklymain.DateMain";
 
Hey...

Thanx... Managed to resolve the problem...

Thanx for the posts...!
 
Top
Sign up to the MyBroadband newsletter
X