fix db_fetch_result() functionality for MySQL
This commit is contained in:
parent
dc33ec9519
commit
e212e483ec
5
db.php
5
db.php
|
@ -96,9 +96,8 @@ function db_fetch_result($result, $row, $param) {
|
||||||
if (DB_TYPE == "pgsql") {
|
if (DB_TYPE == "pgsql") {
|
||||||
return pg_fetch_result($result, $row, $param);
|
return pg_fetch_result($result, $row, $param);
|
||||||
} else if (DB_TYPE == "mysql") {
|
} else if (DB_TYPE == "mysql") {
|
||||||
// FIXME
|
// I hate incoherent naming of PHP functions
|
||||||
$line = mysql_fetch_assoc($result);
|
return mysql_result($result, $row, $param);
|
||||||
return $line[$param];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue