Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.
Moderator: General Moderators
thcc2
Forum Commoner
Posts: 33 Joined: Thu Jan 05, 2006 9:37 pm
Location: Singapore
Post
by thcc2 » Thu Jan 05, 2006 11:01 pm
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
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Thu Jan 05, 2006 11:29 pm
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 » Thu Jan 05, 2006 11:54 pm
feyd wrote: there's no keyword "result" in the language.
did you mean to use $max_result ?
thks, it is $maxresult.