Problem with Site Sculptor
Hello, I have a problem, I uploaded the site to my remote server, everything seems fine with the database and uploads, even with the connection file to the database, but when I start the installation process site with its own cms sculptor, I get the following message:
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/content/15/8862915/html/norente/index.php on line 34
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/content/15/8862915/html/norente/index.php on line 36
The code into the page is the following:
<?php require_once('Connections/citywiderealty.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_citywiderealty, $citywiderealty);
$query_agents = "SELECT * FROM agentsprofiles ORDER BY profileid DESC";
$agents = mysql_query($query_agents, $citywiderealty) or die(mysql_error());
$row_agents = mysql_fetch_assoc($agents);
$totalRows_agents = mysql_num_rows($agents);
require_once('WA_Globals/WA_Globals.php'); ?>
<?php require_once('WA_CMS/addtosite.php'); ?>
Where can be the mistake and correct it?
Thanks!!