close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Random & inconsistent results page

Thread began 9/18/2012 2:10 pm by Paul | Last modified 9/22/2012 8:35 am by Paul | 1424 views | 5 replies

PaulBeta Tester

Close to a full solution...

Ray, i've attempted to add another couple of JOINS to the following sql you showed me recently;

php:
<?php

    
mysql_select_db
($database_HouseyConnect$HouseyConnect);
$query_WADApropsubtbl "SELECT hopicfolder, hopicimagename, propRooms, propType, propmaintbl.propVal, propSDesc FROM propmaintbl 
LEFT OUTER JOIN homepics ON PropPrimePic = hopicsidx
LEFT OUTER JOIN propRooms ON propBeds = propRoomCnt
LEFT OUTER JOIN propstyle ON propType=PropStyleCnt
LEFT OUTER JOIN propval ON propmaintbl.propVal = propValCnt
WHERE propRID = " 
$row_WADApropmaintbl['propRID'];
$WADApropsubtbl mysql_query($query_WADApropsubtbl$HouseyConnect) or die(mysql_error());
$row_WADApropsubtbl mysql_fetch_assoc($WADApropsubtbl);
    
?>



The first two are good, but 3 & 4 return the error; Unknown column 'propValCnt' in 'where clause' and Unknown column 'propSaleCnt' in 'where clause' instead of the results page, when i apply the respective search criteria.

I've followed the same principles as 1&2 - well at least i thought i had;

Join TABLE1 ON TABLE2_TARGET_FIELD_NAME = TABLE1_INDX_FIELD_MATCHING_TABLE2_TARGET_FIELD_NAME

Not sure why failing?

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