0) { $row = mysql_fetch_assoc($res); $rootcertid = intval($row['id']); return $rootcertid; } return -1; } } ?>