close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Error in DataAssist wizard

Thread began 9/23/2009 11:16 pm by Zulian | Last modified 10/28/2009 7:34 am by Zulian | 8558 views | 38 replies

Zulian

Still giving this error

I am getting this error, also I am wondering why I am getting this error as code is generated by DATA ASSIST, we don't have to touch the code while we do it with Data Assist.

Fatal error: Class name must be a valid object or a string in C:\inetpub\wwwroot\resorts\admin\hotels_Results.php on line 31

CODE IS HERE
=============
<?php require_once('../Connections/connTravel.php'); ?>
<?php
//WA Database Search Include
require_once("../WADbSearch/HelperPHP.php");
?>
<?php
//WA Database Search (Copyright 2005, WebAssist.com)
//Recordset: WADAhotels;
//Searchpage: hotels_Search.php;
//Form: WADASearchForm;
$WADbSearch1_DefaultWhere = "";
if (!session_id()) session_start();
if ((isset($_GET["Search_x"]) && $_GET["Search_x"] != "")) {
$WADbSearch1 = new FilterDef;
$WADbSearch1->initializeQueryBuilder("MYSQL","1");
//keyword array declarations

//comparison list additions
$WADbSearch1->addComparisonFromEdit("hotel","S_hotel","AND","Includes",0);
$WADbSearch1->addComparisonFromList("star","S_star","AND","=",1);
$WADbSearch1->addComparisonFromList("country","S_country","AND","=",1);
$WADbSearch1->addComparisonFromList("atoll","S_atoll","AND","=",1);
$WADbSearch1->addComparisonFromEdit("pricerange","S_pricerange","AND","Includes",0);

//save the query in a session variable
if (1 == 1) {
$_SESSION["WADbSearch1_hotels_Results"]=$WADbSearch1->whereClause;
}
}
else {
$WADbSearch1 = new $WADbSearch1;
$WADbSearch1->initializeQueryBuilder("MYSQL","1");
//get the filter definition from a session variable
if (1 == 1) {
if (isset($_SESSION["WADbSearch1_hotels_Results"]) && $_SESSION["WADbSearch1_hotels_Results"] != "") {
$WADbSearch1->whereClause = $_SESSION["WADbSearch1_hotels_Results"];
}
else {
$WADbSearch1->whereClause = $WADbSearch1_DefaultWhere;
}
}
else {
$WADbSearch1->whereClause = $WADbSearch1_DefaultWhere;
}
}
$WADbSearch1->whereClause = str_replace("\\''", "''", $WADbSearch1->whereClause);
$WADbSearch1whereClause = '';
?>
<?php
//WA Database Search (Copyright 2005, WebAssist.com)
//Recordset: WADAhotels;
//Searchpage: hotels_Search.php;
//Form: WADASearchForm;
$WADbSearch1_DefaultWhere = "";
if (!session_id()) session_start();
if ((isset($_GET["Search_x"]) && $_GET["Search_x"] != "")) {
$WADbSearch1 = new FilterDef;
$WADbSearch1->initializeQueryBuilder("MYSQL","1");
//keyword array declarations

//comparison list additions
$WADbSearch1->addComparisonFromEdit("hotel","S_hotel","AND","Includes",0);
$WADbSearch1->addComparisonFromList("star","S_star","AND","=",1);
$WADbSearch1->addComparisonFromList("atoll","S_atoll","AND","=",1);
$WADbSearch1->addComparisonFromEdit("pricerange","S_pricerange","AND","Includes",0);

//save the query in a session variable
if (1 == 1) {
$_SESSION["WADbSearch1_hotels_Results"]=$WADbSearch1->whereClause;
}
}
else {
$WADbSearch1 = new FilterDef;
$WADbSearch1->initializeQueryBuilder("MYSQL","1");
//get the filter definition from a session variable
if (1 == 1) {
if (isset($_SESSION["WADbSearch1_hotels_Results"]) && $_SESSION["WADbSearch1_hotels_Results"] != "") {
$WADbSearch1->whereClause = $_SESSION["WADbSearch1_hotels_Results"];
}
else {
$WADbSearch1->whereClause = $WADbSearch1_DefaultWhere;
}
}
else {
$WADbSearch1->whereClause = $WADbSearch1_DefaultWhere;
}
}
$WADbSearch1->whereClause = str_replace("\\''", "''", $WADbSearch1->whereClause);
$WADbSearch1whereClause = '';
?>

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