Unix and Linux Discussions Tagged with rows |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
5,671 |
UNIX for Beginners Questions & Answers |
|
|
|
11 |
9,124 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
9,591 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
6,482 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
9,468 |
Shell Programming and Scripting |
|
|
|
7 |
4,199 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
2,963 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
4,237 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
2,617 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
3,677 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
4,162 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
6,361 |
Shell Programming and Scripting |
|
|
|
5 |
2,212 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,668 |
Shell Programming and Scripting |
|
|
|
6 |
2,457 |
Shell Programming and Scripting |
|
|
|
9 |
11,963 |
Shell Programming and Scripting |
|
|
|
4 |
1,841 |
Shell Programming and Scripting |
|
|
|
8 |
2,820 |
Shell Programming and Scripting |
|
|
|
8 |
3,364 |
Shell Programming and Scripting |
|
|
|
6 |
2,327 |
Shell Programming and Scripting |
|
|
|
8 |
3,081 |
Shell Programming and Scripting |
|
|
|
2 |
3,178 |
Shell Programming and Scripting |
|
|
|
3 |
5,073 |
Shell Programming and Scripting |
|
|
|
5 |
20,474 |
Shell Programming and Scripting |
|
|
|
2 |
13,842 |
Shell Programming and Scripting |
|
|
|
6 |
3,243 |
Shell Programming and Scripting |
|
|
|
2 |
3,102 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
8,054 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
9,030 |
Shell Programming and Scripting |
|
|
|
5 |
4,555 |
Shell Programming and Scripting |
|
|
|
4 |
4,503 |
Shell Programming and Scripting |
|
|
|
6 |
5,379 |
Shell Programming and Scripting |
|
|
|
24 |
8,105 |
Shell Programming and Scripting |
|
|
|
4 |
5,663 |
Shell Programming and Scripting |
|
|
|
2 |
2,547 |
Shell Programming and Scripting |
|
|
|
6 |
11,427 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
1,915 |
Shell Programming and Scripting |
|
|
|
5 |
19,545 |
Shell Programming and Scripting |
|
|
|
1 |
2,586 |
Shell Programming and Scripting |
|
|
|
6 |
10,574 |
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)