close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

concat error in query builder

Thread began 10/31/2018 1:33 pm by Jonas | Last modified 11/06/2018 4:37 pm by Jonas | 899 views | 5 replies

Jonas

I want to CONCAT first name and second name

Here comes the code that works:

<?php
$WADAstore_details = new WA_MySQLi_RS("WADAstore_details",$DB,1);
$WADAstore_details->setQuery("SELECT store_id, storename, description, picture, link, rating, CONCAT (`employee`.`firstName`,' ',`employee`.`lastName`) AS employee_name, `district`.`districtName` AS district_districtName, city.cityName AS city_cityName, `manufacture`.`manufactureName` AS manufacture_manufactureName, city2.cityName AS city_cityName2, `category`.`categoryName` AS category_categoryName, other FROM store LEFT JOIN employee ON employee.employee_id = store.idEmployee_id LEFT JOIN district ON district.district_id = store.idDistrict_id LEFT JOIN city ON city.city_id = store.idDistrictCity_id LEFT JOIN manufacture ON manufacture.manufacture_id = store.idManufacture_id LEFT JOIN city AS city2 ON city2.city_id = store.idManufactureCity_id LEFT JOIN category ON category.category_id = store.idCategory_id WHERE store_id = ?");
$WADAstore_details->bindParam("i", "".($_GET['store_id']) ."", "-1"); //Paramstore_id
$WADAstore_details->execute();
?>

And here is the error when I open it in Query builder:
"Error Inspecting SQL
• table alias not found CONCAT (`employee`
• select column not found: ' '
• checked column not found: lastName)"

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