one more: PEAR Coding Standards

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@292374 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Martin Samesch 2009-12-20 19:24:05 +00:00
parent 81da5c390e
commit 5194661b6e

View file

@ -83,14 +83,10 @@
$query = mssql_query('SELECT [username] FROM [php].[dbo].[userlist]');
// Check if there were any records
if (!mssql_num_rows($query))
{
if (!mssql_num_rows($query)) {
echo 'No records found';
}
else
{
for ($i = 0; $i < mssql_num_rows($query); ++$i)
{
} else {
for ($i = 0; $i < mssql_num_rows($query); ++$i) {
echo mssql_result($query, $i, 'username'), PHP_EOL;
}
}