Mailinglisten-Archive |
Ho Ho Ho Liste!
Ich habe foldendes Prblem die: die unten stehende Function soll eine
MySQL-Abfrage machen, tut Sie aber nicht. Als Fehler kommt: Warning: 0
is not a MySQL result index in input.php3 on line 68.
Wenn ich das ganz ohne aus der Function rausnehme und so ausführe im
PHP-Scripts, dann funzt es einwandfrei.
Wo liegt das Problem???
function DoGetU() {
global $UBs, $query, $gotUBs, $daba, $connection, $id, $name,
$key, $val, $issda;
$query = "SELECT ubID,ubName FROM db WHERE ob=$ob";
$gotUBs = mysql_db_query($daba,$query,$connection);
L68: while(list($id,$name) = mysql_fetch_row($gotUBs)) {
while (list($key, $val) = each($UBs)) {
if($key == $name) {
$issda = "1";
}
}
}
}
$res = DoGetU();
Muß ich was besondere beachten bei den MySQL-Abfragen in Funktionen???
Vielen Dank
Lars
php::bar PHP Wiki - Listenarchive