As far as I know, I have successfully completed all config files so the site should load, but for some reason, the site doesn't.
Here is the error message I get instead.
array(3) { [0]=> array(4) { ["file"]=> string(74) "/home/imedia/public_html/music-and-lyrics.info/functions/main.function.php" ["line"]=> int(10) ["function"]=> string(10) "mysqlQuery" ["args"]=> array(1) { [0]=> &string(20) "SELECT * FROM config" } } [1]=> array(4) { ["file"]=> string(59) "/home/imedia/public_html/music-and-lyrics.info/template.php" ["line"]=> int(7) ["function"]=> string(9) "getConfig" ["args"]=> array(0) { } } [2]=> array(4) { ["file"]=> string(56) "/home/imedia/public_html/music-and-lyrics.info/index.php" ["line"]=> int(344) ["args"]=> array(1) { [0]=> string(59) "/home/imedia/public_html/music-and-lyrics.info/template.php" } ["function"]=> string(7) "include" } }
Table 'imedia_lyrics.config' doesn't exist
The link to the site is here- you need to see the result as is.
http://music-and-lyrics.info/
This is the first error page:
<?php
function mysqlQuery($query){
$result=mysql_query($query) or die("<xmp>".var_dump(debug_backtrace())."</xmp><br/>".mysql_error());
return $result;
}
function getConfig()
{
$query = "SELECT * FROM config";
$result=mysqlQuery($query);
// while ($row = mysql_fetch_array($result))
// {
// $config = $row;
// }
$config = mysql_fetch_array($result);
return $config;
}
function checkFormat($variable, $errcnt)
{
if ( strlen(trim($variable)) == 0 ) {
$errs[$errcnt]="$variable must be provided";
$errcnt++;
} elseif(preg_match ("/[;<>&]/", $variable)) {
$errs[$errcnt]="$variable can not have any special character (e.g. & ; < >)";
$errcnt++;
}
return $errcnt;
}
?>
I thought it best to try and tackle this first. Any help would be appreciated.