Unix and Linux Discussions Tagged with rows |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
4,181 |
UNIX for Beginners Questions & Answers |
|
|
|
11 |
6,097 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
7,228 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
5,034 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
8,209 |
Shell Programming and Scripting |
|
|
|
7 |
3,085 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
2,135 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,963 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
1,805 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
2,860 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
3,148 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
5,562 |
Shell Programming and Scripting |
|
|
|
5 |
1,478 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
1,676 |
Shell Programming and Scripting |
|
|
|
6 |
1,687 |
Shell Programming and Scripting |
|
|
|
9 |
10,635 |
Shell Programming and Scripting |
|
|
|
4 |
1,521 |
Shell Programming and Scripting |
|
|
|
8 |
2,464 |
Shell Programming and Scripting |
|
|
|
8 |
2,999 |
Shell Programming and Scripting |
|
|
|
6 |
1,927 |
Shell Programming and Scripting |
|
|
|
8 |
2,780 |
Shell Programming and Scripting |
|
|
|
2 |
2,801 |
Shell Programming and Scripting |
|
|
|
3 |
4,878 |
Shell Programming and Scripting |
|
|
|
5 |
19,705 |
Shell Programming and Scripting |
|
|
|
2 |
13,046 |
Shell Programming and Scripting |
|
|
|
6 |
3,016 |
Shell Programming and Scripting |
|
|
|
2 |
2,860 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
7,169 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
8,364 |
Shell Programming and Scripting |
|
|
|
5 |
4,364 |
Shell Programming and Scripting |
|
|
|
4 |
4,265 |
Shell Programming and Scripting |
|
|
|
6 |
4,950 |
Shell Programming and Scripting |
|
|
|
24 |
7,267 |
Shell Programming and Scripting |
|
|
|
4 |
5,444 |
Shell Programming and Scripting |
|
|
|
2 |
2,362 |
Shell Programming and Scripting |
|
|
|
6 |
10,782 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
1,756 |
Shell Programming and Scripting |
|
|
|
5 |
19,121 |
Shell Programming and Scripting |
|
|
|
1 |
2,372 |
Shell Programming and Scripting |
|
|
|
6 |
10,087 |
Shell Programming and Scripting |
SQLSRV_HAS_ROWS(3) SQLSRV_HAS_ROWS(3)
sqlsrv_has_rows - Indicates whether the specified statement has rows
SYNOPSIS
bool sqlsrv_has_rows (resource $stmt)
DESCRIPTION
Indicates whether the specified statement has rows.
PARAMETERS
o $stmt
- A statement resource returned by sqlsrv_query(3) or sqlsrv_execute(3).
RETURN VALUES
Returns TRUE if the specified statement has rows and FALSE if the statement does not have rows or if an error occurred.
EXAMPLES
Example #1
sqlsrv_has_rows(3) example
<?php
$server = "serverNamesqlexpress";
$connectionInfo = array( "Database"=>"dbName", "UID"=>"username", "PWD"=>"password" )
$conn = sqlsrv_connect( $server, $connectionInfo );
$stmt = sqlsrv_query( $conn, "SELECT * FROM Table_1");
if ($stmt) {
$rows = sqlsrv_has_rows( $stmt );
if ($rows === true)
echo "There are rows. <br />";
else
echo "There are no rows. <br />";
}
?>
SEE ALSO
sqlsrv_num_rows(3), sqlsrv_query(3).
PHP Documentation Group SQLSRV_HAS_ROWS(3)