|
sqlsrv_queryPrepares and executes a query. Description
mixed sqlsrv_query
( resource
$conn
, string $sql
[, array $params
[, array $options
]] )Prepares and executes a query. Parameters
Return Values
Returns a statement resource on success and Examples
Example #1 sqlsrv_query example
<?php NotesFor statements that you plan to execute only once, use sqlsrv_query. If you intend to re-execute a statement with different parameter values, use the combination of sqlsrv_prepare and sqlsrv_execute. See Also
|