prepare($query); $sth->execute($fields); return true; } function getSystemVolume() { global $globaldbh; $query = "SELECT value FROM " . SETTINGSTABLE . " WHERE parameter='CURVOLUME'"; $sth = $globaldbh->prepare($query); $sth->execute(); if ( $row = $sth->fetch(PDO::FETCH_ASSOC) ) { $curvol = $row['value']; } else { $curvol = '0'; } return $curvol; }