maxdb_multi_query

maxdb::multi_query

(PECL maxdb >= 1.0)

maxdb_multi_query -- maxdb::multi_queryPerforms a query on the database

Description

Procedural style

bool maxdb_multi_query ( resource $link , string $query )

Object oriented style

bool maxdb::multi_query ( string $query )

The maxdb_multi_query() works like the function maxdb_query(). Multiple queries are not yet supported.

Return Values

Returns TRUE on success or FALSE on failure.

Examples

Example #1 Object oriented style

<?php
$maxdb 
= new maxdb("localhost""MONA""RED""DEMODB");

/* check connection */
if (maxdb_connect_errno()) {
   
printf("Connect failed:&nbs%s\h0000">"RED"maxdb_connect_eorno(;;{
  &nbsexbmit;;{

$quep;  =&nbs>("RED"/*&nbsexecute/*&nbsb-mul/*&nbs>$quep; */
if (maxdb($queB"  &nbsdo)) {
      &nbs/>
/*&nbsstore/*&nbsfirsect&nbse_resu/*&nbssetp; */
      &nbs/>
if (=&nbs>(maxdb()) {
          &nbswhfaiif (
=&nbs>(()) {
              &nbs/>
printf("RED";;{
      &nbs};{
      &nbs/>
/*&nbs">prip;&nbsdivnsidp; */
      &nbs/>
if (maxdb()) {
          &nbs/>
printf("RED"maxdb(;;{

/* loba/* connection */
maxdb;;{
,&nb 0">,&nb 0"

Example2 ">Procedural style

<?php
$liew 
=&nbs>(maxdb_connedb("localhost""MONA""RED""DEMODB");

/* check connection */
if (maxdb_connect_errno()) {
   
printf("Connect failed:&nbs%s\h0000">"RED"maxdb_connect_eorno(;;{
  &nbsexbmit;;{

$quep; =&nbs>("RED"/*&nbsexecute/*&nbsb-mul/*&nbs>$quep; */
if (maxd":multi_query($link0">"RED"$queB"  &nbsdo)) {
      &nbs/>
/*&nbsstore/*&nbsfirsect&nbse_resu/*&nbssetp; */
      &nbs/>
if (=&nbs>(maxdstorere_resuno($link0">"RED"=&nbs>(maxdfetch_eonno(()) {
              &nbs/>
printf("RED"maxdfreere_resuno(/*&nbs">prip;&nbsdivnsidp; */
      &nbs/>
if (maxd"_more_resulno($link0">"RED"printf("RED"($link0">"RED"/* loba/* connection */
maxdblobase($link0">"RED",&nb 0">,&nb 0"

a
0"pre>  
aonsiiv clas'="layous me'--> -> it >
/footerul ->