note 56302 added to ref.mssql
| From: | evenblij at phitech dot nl | Date: | Tue, 30 Aug 2005 06:56:22 +0000 |
| Subject: | note 56302 added to ref.mssql | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-94368@lists.php.net to get a copy of this message | ||
I have a problem using mssql_query and mssql_fetch_... For some reason I get a result with only one
row where I'm sure there are more rows in the table.
I have MSDE installed with Apache and PHP5. All(...) works fine but this problem. I use the
following (basic) code:
$server = '<server-name>';
$username = '<username>';
$password = '<password>';
$link = mssql_connect($server, $username, $password);
if (!$link) {die('Cannot connect to the database!');}
$result = mssql_query("SELECT * FROM Authorisation");
if ($result) {
while ($row = mssql_fetch_row($result)) {
echo $row[0];
echo $row[1];
echo $row[2];
echo "<br>";
}
----
Manual Page -- http://www.php.net/manual/en/ref.mssql.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56302
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56302&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56302&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56302&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56302&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56302&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56302&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56302&report=yes
Search -- http://master.php.net/manage/user-notes.php