0) { $Return = "\n\n"; $Return .= "\n"; while($jobRow = mysql_fetch_array($Result)) { $jobId = $jobRow["id"]; $type = $jobRow["type"]; $date = $jobRow["date"]; $descp = $jobRow["descp"]; $email = $jobRow["email"]; $Return .= "\n"; } $Return .= ""; echo $Return; } } function openDatabase($setup) { // Make connection $Connection = @mysql_connect($setup['DB']['HOST'], $setup['DB']['USER'], $setup['DB']['PASS']); if (!$Connection) { echo("Connection to the database failed"); exit(); } // Selects the database if (! @mysql_select_db($setup['DB']['NAME']) ) { echo("Unable to find database"); exit(); } } // Disconnect database function closeDatabase() { @mysql_close($Connection); @mysql_close(); } ?>