note 56302 rejected from ref.mssql by mazzanet

From: Date: Tue, 30 Aug 2005 10:10:52 +0000
Subject: note 56302 rejected from ref.mssql by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-94373@lists.php.net to get a copy of this message
Note Submitter: evenblij at phitech dot nl ---- 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>"; }

« previous php.notes (#94373) next »