Page 1 of 1

invalid statement

Posted: Thu Jan 05, 2006 11:01 pm
by thcc2
the following statement is working fine while is it in MySQL, but it become invalid in PostgresSQL, can someone tell me what is the correct synax of this?

Code: Select all

else if (($num_rows % $max result) == 0)
i need it should be something wrong with the keyword "result"
thks in advance

Posted: Thu Jan 05, 2006 11:29 pm
by feyd
there's no keyword "result" in the language.

did you mean to use $max_result ?

Posted: Thu Jan 05, 2006 11:54 pm
by thcc2
feyd wrote:there's no keyword "result" in the language.

did you mean to use $max_result ?
thks, it is $maxresult.