close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Filtering Help

Thread began 1/10/2013 2:57 pm by Kumel | Last modified 1/10/2013 4:56 pm by Kumel | 521 views | 8 replies |

Kumel

Filtering Help

I m making a real estate website where i can display all the available properties for sale, renting and etc.

So created using dataassist where all the data is stored in database & retrieved on the result pages..

So i need help in filtering. I kinda find it little difficult to do this.
If possible please help me in detail.

I got 1 DB & in that there are 3tables..

*table1 is Properties which contains name of builder/company name, building/property name, locations,min max price, imgs etcetc..

*table2 is builderslist which contains list of builders name

*table3 is locations list which contains List of locations

while inserting record ie. properties, the builder name is taken from table1 (buildername) and location from locationlist table2 from DB..
********************

So now lets say a user is checking a property of "X" company in property_details page. So now i want a to show users other properties of same builder in that page may be like 1 or more properties..

All required files are attached..

Thank You

Attached Files
property.zip
Sign in to reply to this post

Jason ByrnesWebAssist

create another recordset to query the property table. you'll need to use advanced view.

SELECT * FROM Properties where NameofBuilder = paramBuilder

in the paramters section, create a new parameter as:
name: paramBuilder
type: text
default value: -1
run time value: $row_WADAresidentials['NameofBuilder']

Sign in to reply to this post

Kumel

Ok that was awesome.. What if i want to show 2 or more properties then?

Sign in to reply to this post

Jason ByrnesWebAssist

use a repeat region.

Sign in to reply to this post

Kumel

Ok thats great..

But what about Hyperlink to give it to them? when i clicked on the name i want to take them to that particular property(detail) page.

<a href="?"> <?php echo $row_Recordset1['NameofProperty']; ?> </a>

Sign in to reply to this post

Jason ByrnesWebAssist

BuildingID
<a href="Prop_Detail.php?BuildingID=<?php echo $row_Recordset1['NameofProperty']; ?>"> <?php echo $row_Recordset1['BuildingID']; ?> </a>

Sign in to reply to this post

Kumel

By the way by adding recordset and using SELECT * FROM Properties where NameofBuilder = paramBuilder


It shows the 1st record from Property of NameofBuilder.

How to get random of property name from NameofBuilder?

Sign in to reply to this post

Jason ByrnesWebAssist

add:
ORDER BY RAND()

to the recordset

Sign in to reply to this post

Kumel

Cool..

Thanks a lot.

Sign in to reply to this post

Kumel

This post has been deleted.

loading

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