At line 26:
PHP Code:
if(mysql_num_rows($result_no) > 0 )
$clicking_input = 0;
$clicking_total = 0;
Unlike the rest, you forgot to use curly brackets as to wrap the code (which should be executed). Considering you didn't use these, it expects you to end the commands by using a semicolon at the end. Using the curly brackets should fix it. Not to mention, even if you would not use curly brackets and have two conditions or multiple, it would execute both - so also the second statement - regardless of being true or false.
Try the following (or wherever execution should end of the if condition):
PHP Code:
if(mysql_num_rows($result_no) > 0 ) {
$clicking_input = 0;
$clicking_total = 0;
}
Also, why do you have a semicolon at line 106? You would tell it "if $totalrows > 1, do nothing" as you stop the execution of the code that is beneath it (within the wrapped curly brackets).
PHP Code:
if($totalrows > 1);
__________________
$gocore = new gakoyucore();
$con = mysql_connect($gocore->server, $gocore->username, $gocore->password) or die(mysql_error());
Last edited by Gakoyu Ojima; 12-15-2010 at 04:16 AM..
|