mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
81da5c390e
commit
5194661b6e
1 changed files with 3 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue