invalid statement

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
thcc2
Forum Commoner
Posts: 33
Joined: Thu Jan 05, 2006 9:37 pm
Location: Singapore

invalid statement

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

there's no keyword "result" in the language.

did you mean to use $max_result ?
thcc2
Forum Commoner
Posts: 33
Joined: Thu Jan 05, 2006 9:37 pm
Location: Singapore

Post by thcc2 »

feyd wrote:there's no keyword "result" in the language.

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