close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Hide add button after clicking it.

Thread began 8/20/2020 7:46 am by Jonas | Last modified 8/10/2022 12:24 pm by Jonas | 1747 views | 49 replies

Jonas

Thanks for reply.
I thought I wrote the query correctly. But something is wrong here. The idea is that if an article is selected by logged in user - then the "add" button for that article, will disappear. But for some reason my query repeats the article as many times as any user has added it. However, the "add" button on one of them disappears. Of course, I only want to show the same article once, not several. I have tried to change the join statement on "bucMylist", but without success.

Here is my query:
<?php
$WADAbuckets = new WA_MySQLi_RS("WADAbuckets",$bucketListHub,0);
$WADAbuckets->setQuery("SELECT bucBuckets.buc_id, bucBuckets.buc_name, bucBuckets.buc_description, bucBuckets.buc_minAge, bucBuckets.buc_maxAge, bucCategories_translation.cattra_name AS bucCategories_translation_cattra_name, bucBudget.bud_name AS bucBudget_bud_name, bucCountry_translation.coutra_name AS bucCountry_translation_coutra_name, bucCity.cit_name AS bucCity_cit_name, bucDifficulty.dif_ID AS bucDifficulty_dif_ID, bucDifficulty.dif_name AS bucDifficulty_dif_name, bucBucketCollections.*, bucCollections.col_name, bucPercitipatingDegree.per_name, bucImages.ima_link, bucMylist.* FROM bucBuckets LEFT OUTER JOIN bucCategories_translation ON bucBuckets.buc_cattraID = bucCategories_translation.cattra_id LEFT OUTER JOIN bucBudget ON bucBuckets.buc_budID = bucBudget.bud_id LEFT OUTER JOIN bucCountry_translation ON bucBuckets.buc_couCode = bucCountry_translation.coutra_couCode LEFT OUTER JOIN bucCity ON bucBuckets.buc_citID = bucCity.cit_id LEFT OUTER JOIN bucDifficulty ON bucBuckets.buc_difID = bucDifficulty.dif_ID LEFT OUTER JOIN bucBucketCollections ON bucBuckets.buc_id = bucBucketCollections.collectionBucketBucket_ID LEFT OUTER JOIN bucCollections ON bucBucketCollections.collectionBucketCollection_ID = bucCollections.col_id LEFT OUTER JOIN bucPercitipatingDegree ON bucBuckets.buc_perID = bucPercitipatingDegree.per_ID LEFT OUTER JOIN bucImages ON bucBuckets.buc_id = bucImages.ima_bucID LEFT OUTER JOIN bucMylist ON bucBuckets.buc_id = bucMylist.myl_bucID ORDER BY bucBuckets.buc_name ASC");
$WADAbuckets->execute();
?>

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