close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Problem with Site Sculptor

Thread began 2/27/2012 4:37 pm by Gabriel Tiviroli | Last modified 2/28/2012 10:24 am by Gabriel Tiviroli | 872 views | 1 replies

Gabriel Tiviroli

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!!

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...