Jump to content

PHP error when change DB from MySQL to SQL200


haibec

Recommended Posts

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 company 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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...