Unix and Linux Discussions Tagged with rows |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
4,433 |
UNIX for Beginners Questions & Answers |
|
|
|
11 |
6,783 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
7,683 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
5,283 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
8,423 |
Shell Programming and Scripting |
|
|
|
7 |
3,308 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
2,312 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
3,132 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
1,949 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
2,982 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
3,318 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
5,732 |
Shell Programming and Scripting |
|
|
|
5 |
1,545 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
1,790 |
Shell Programming and Scripting |
|
|
|
6 |
1,770 |
Shell Programming and Scripting |
|
|
|
9 |
10,837 |
Shell Programming and Scripting |
|
|
|
4 |
1,584 |
Shell Programming and Scripting |
|
|
|
8 |
2,546 |
Shell Programming and Scripting |
|
|
|
8 |
3,063 |
Shell Programming and Scripting |
|
|
|
6 |
1,993 |
Shell Programming and Scripting |
|
|
|
8 |
2,816 |
Shell Programming and Scripting |
|
|
|
2 |
2,842 |
Shell Programming and Scripting |
|
|
|
3 |
4,917 |
Shell Programming and Scripting |
|
|
|
5 |
19,822 |
Shell Programming and Scripting |
|
|
|
2 |
13,126 |
Shell Programming and Scripting |
|
|
|
6 |
3,048 |
Shell Programming and Scripting |
|
|
|
2 |
2,908 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
7,267 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
8,484 |
Shell Programming and Scripting |
|
|
|
5 |
4,392 |
Shell Programming and Scripting |
|
|
|
4 |
4,288 |
Shell Programming and Scripting |
|
|
|
6 |
5,012 |
Shell Programming and Scripting |
|
|
|
24 |
7,370 |
Shell Programming and Scripting |
|
|
|
4 |
5,469 |
Shell Programming and Scripting |
|
|
|
2 |
2,390 |
Shell Programming and Scripting |
|
|
|
6 |
10,824 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
1,789 |
Shell Programming and Scripting |
|
|
|
5 |
19,184 |
Shell Programming and Scripting |
|
|
|
1 |
2,390 |
Shell Programming and Scripting |
|
|
|
6 |
10,147 |
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)