Unix and Linux Discussions Tagged with rows |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
3,820 |
UNIX for Beginners Questions & Answers |
|
|
|
11 |
4,710 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
6,467 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
4,709 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
7,077 |
Shell Programming and Scripting |
|
|
|
7 |
2,816 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
1,917 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,768 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
1,633 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
2,675 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
2,939 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
5,162 |
Shell Programming and Scripting |
|
|
|
5 |
1,398 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
1,475 |
Shell Programming and Scripting |
|
|
|
6 |
1,550 |
Shell Programming and Scripting |
|
|
|
9 |
10,375 |
Shell Programming and Scripting |
|
|
|
4 |
1,419 |
Shell Programming and Scripting |
|
|
|
8 |
2,402 |
Shell Programming and Scripting |
|
|
|
8 |
2,925 |
Shell Programming and Scripting |
|
|
|
6 |
1,879 |
Shell Programming and Scripting |
|
|
|
8 |
2,732 |
Shell Programming and Scripting |
|
|
|
2 |
2,707 |
Shell Programming and Scripting |
|
|
|
3 |
4,844 |
Shell Programming and Scripting |
|
|
|
5 |
19,553 |
Shell Programming and Scripting |
|
|
|
2 |
12,927 |
Shell Programming and Scripting |
|
|
|
6 |
2,967 |
Shell Programming and Scripting |
|
|
|
2 |
2,811 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
7,079 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
8,257 |
Shell Programming and Scripting |
|
|
|
5 |
4,334 |
Shell Programming and Scripting |
|
|
|
4 |
4,234 |
Shell Programming and Scripting |
|
|
|
6 |
4,853 |
Shell Programming and Scripting |
|
|
|
24 |
7,127 |
Shell Programming and Scripting |
|
|
|
4 |
5,414 |
Shell Programming and Scripting |
|
|
|
2 |
2,326 |
Shell Programming and Scripting |
|
|
|
6 |
10,730 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
1,721 |
Shell Programming and Scripting |
|
|
|
5 |
19,021 |
Shell Programming and Scripting |
|
|
|
1 |
2,336 |
Shell Programming and Scripting |
|
|
|
6 |
10,027 |
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)