phpbar.de logo

Mailinglisten-Archive

Re: Problem mit mysql_fetch_array
Archiv Mailingliste mysql-de

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem mit mysql_fetch_array



Hi Philip,

> $result=mysql_query("select count(*) as anzahl from adressen where
> bundesland=$bl_id",$db);
> $row = mysql_fetch_array($result);

Meine Empfehlung dahingehend:

  [...]
  if (($db = mysql_connect("$host", "$username", "$pass"))) {
    if (mysql_select_db("$dbname", $db)) {
      if (($result = mysql_query("select....."))) {
        $row = mysql_fetch_row($result);
        return $row[0];
      }
    }
  }
  print(mysql_error());
}


Gruß Jan

---
*** Weitere Infos zur Mailingliste und MySQL unter www.4t2.com/mysql 


Home | Main Index | Thread Index

php::bar PHP Wiki   -   Listenarchive