
Druckansicht von http://www.php-homepage.de/manual/function.mysqli-query.php
mysqli_querymysqli->query()(PHP 5) mysqli->query() — Performs a query on the database BeschreibungProcedural style:
mixed mysqli_query
( mysqli $link
, string $query
[, int $resultmode
] )
Object oriented style (method): mysqli
mixed query
( string $query
[, int $resultmode
] )
Performs a query against the database. Functionally, using this function is identical to calling mysqli_real_query() followed either by mysqli_use_result() or mysqli_store_result(). Parameter Liste
RückgabewerteGibt bei Erfolg TRUE zurück, im Fehlerfall FALSE. For SELECT, SHOW, DESCRIBE or EXPLAIN mysqli_query() will return a result object. BeispieleExample#1 Object oriented style
<?phpExample#2 Procedural style
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
|