close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Results page show image, "print" searched term

Thread began 1/10/2013 3:15 pm by jo271221 | Last modified 2/12/2013 1:26 pm by jo271221 | 1341 views | 9 replies

jo271221

Join Statemetn to show image

The print work great! Thank you!

The Column 'adid' in order clause is ambiguous - I have zipped my attempts and here are the live pages:
ads_horses_results-ORDERBYadid.php

My most recent attempt show one horse repeating - ie only the 1st matching horse in the database I assume.
ads_horses_results.php

On this file I added a filter to just display ads with images
"SELECT ads_horses.*,tbl_posts.* FROM ads_horses INNER JOIN tbl_posts ON ads_horses.adid = tbl_posts.postid WHERE ad_category = '3' AND image IS NOT NULL AND image <> '' ORDER BY postid DESC"; so we could see just ads which have images and also ad_category is the id for the ads_horses

I also added this and the price and customer ID does not display, looks like nothing from the tbl_posts is displaying.
Customer ID: {WADAads_horses.customerid} ${WADAtbl_post.price}

I thought I had this working right away by simply changing the ORDER BY to postid, nearly sure I did. Therefore I tried again with
"SELECT ads_horses.*,tbl_posts.* FROM ads_horses INNER JOIN tbl_posts ON ads_horses.adid = tbl_posts.ad_category ORDER BY postid DESC"; Because the ad_category is the field that actual is common between the 2 tables, but here the image does not show up at all. Nor does the price or customer id

ads_horses_results.php

The FTP info is in message 8 on closed ticket #146365

Thank You!

Attached Files
ads_horses_results-ORDERBYadid.zip

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