Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
haibec
Yak Posting Veteran
54 Posts |
Posted - 2008-01-04 : 04:38:22
|
Please help me.When i change DB from MySQL to SQL2000 . My Website (by PHP) code <?$rowsPerPage = 9; // how many rows to show per page$pageNum = 1; // by default we show first page$offset = ($pageNum - 1) * $rowsPerPage; // counting the offset$sql = "SELECT id, name, logo FROM office WHERE accept=3 ORDER BY id DESC LIMIT $offset, $rowsPerPage";$result = mssql_query($sql, $link);for ($i=1;$i<=9;$i++){ if (($i%3) == 1) echo "<tr>"; if ($row=mssql_fetch_array($result)) {?>When im runing appear error:Warning: mssql_query() [function.mssql-query]: message: Line 1: Incorrect syntax near 'LIMIT'. (severity 15) in C:\AppServ\www\project\modules\category.php on line 66Please help me solution for this error |
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
|
|
|
|