if (($sth = db_query($query)) === false) return;
$tags = array();
- for ($i=0; $i < pg_NumRows ($sth); $i++) {
+ for ($i=0; $i < pg_num_rows ($sth); $i++) {
$row = pg_fetch_array ($sth, $i);
$tags[$row['id']] = $row['tagname'];
}
if (($sth = db_query($query)) === false) return;
- if (pg_NumRows($sth) > 0) {
+ if (pg_num_rows($sth) > 0) {
$ret_mytags = '<p class="tagcloud">';
- for ($i=0; $i < pg_NumRows ($sth); $i++) {
+ for ($i=0; $i < pg_num_rows ($sth); $i++) {
$row = pg_fetch_array ($sth, $i);
if (javascript_ok())
$link = sprintf('href="%stags.html" onclick="return tag_action(\'del\',%d,%d);"',
if ($sth === false)
return true; // eigentlich false, aber da true=exists einen Fehler liefert...
- if (pg_NumRows($sth) == 0)
+ if (pg_num_rows($sth) == 0)
return false;
return true;