Seite 3 von 3

Re: Owned game :D

Verfasst: 25.11.2009, 16:32
von Kapsonfire
Einfallsreichtum pwned Finzanzkrise

Code: Alles auswählen

function fastsql(bool $array,bool $error,bool $numrows,$query)
{
   $ret;
   $qry=mysql_query($query);
   if($array)   $ret[0]=mysql_fetch_array($qry);
   if($error)   $ret[1]=mysql_error();
   if($numrows) $ret[2]=mysql_num_rows($qry);
   return $ret;
}

//einsatz
$tmp=fastsql(true,true,true,"beispielquery");
//error
echo $tmp[1];
//numrows
echo $tmp[2];
//spaltenoutput
echo $tmp[0][beispielspalte];

Re: Owned game :D

Verfasst: 25.11.2009, 18:26
von Thanatos
Denkblockade owned Einfallsreichtum

Re: Owned game :D

Verfasst: 25.11.2009, 18:50
von Captain Erbse
Koordination owned Datenblockade

Re: Owned game :D

Verfasst: 25.11.2009, 19:16
von Ganymed
Defibrilator owned Koordination

Re: Owned game :D

Verfasst: 21.01.2012, 01:35
von Dimi
Stromausfall owned Defibrilator