|
maxdb_stmt_preparemaxdb_stmt::preparePrepare an SQL statement for execution BeschreibungProzeduraler Stil
bool maxdb_stmt_prepare
( resource
$stmt
, string $query
)Objektorientierter Stil
mixed maxdb_stmt::prepare
( string
$query
)maxdb_stmt_prepare prepares the SQL query pointed to by the null-terminated string query. The statement resource has to be allocated by maxdb_stmt_init. The query must consist of a single SQL statement.
The parameter
The parameter markers must be bound to application variables using maxdb_stmt_bind_param and/or maxdb_stmt_bind_result before executing the statement or fetching rows. Rückgabewerte
Gibt bei Erfolg BeispieleBeispiel #1 Objektorientierter Stil
<?phpBeispiel #2 Prozeduraler Stil
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: Portland is in district OR Siehe auch
|