Log in

View Full Version : Error: Expected ;



rhodarose
12-15-2010, 01:51 AM
Good day!

I encountered an error at line 26, error: expected ';'

I can't see what is the cuase of that error.

I attached my codes.

Thank you

traq
12-15-2010, 02:13 AM
you didn't include { } brackets after your if() condition on line 25, so php thinks it's a single-line "if" and can't find the closing semicolon:
if(mysql_num_rows($result_no) > 0 )

$clicking_input = 0;

$clicking_total = 0;
// should be:
if(mysql_num_rows($result_no) > 0 )
{ // <--right there! : )
$clicking_input = 0;

$clicking_total = 0;
// and however far down you want the closing }

jscheuer1
12-15-2010, 02:14 AM
Just on a hunch, I'd say get rid of the highlighted:


<body onLoad="document.clttest.clt_no.focus();">

If that doesn't work -

Is that a javascript error or a PHP error? If it's javascript, we need to see the served source code, so either give us a link to the live page, or:


Load up the page that's giving you this error in the browser.


Use the browser's 'view source' to see the source code being served.


Select all and copy.


Paste that into a text file, save and attach that text file to a post here.