|
PHP5中文手册
maxdb_querymaxdb->query(PECL maxdb:1.0-7.6.00.38) maxdb->query — Performs a query on the database 说明Procedural style:
mixed maxdb_query
( resource $link
, string $query
[, int $resultmode
] )
Object oriented style (method): maxdb
mixed
query
( string $query
)
The maxdb_query() function is used to simplify the act of performing a query against the database represented by the link parameter. 返回值如果成功则返回 TRUE,失败则返回 FALSE。 For SELECT, SHOW, DESCRIBE or EXPLAIN maxdb_query() will return a result resource. 范例Example#1 Object oriented style
<?php Example#2 Procedural style
<?php The above examples would produce the following output:
|