close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

child not displaying correctly

Thread began 9/10/2015 11:51 am by mrobben375515 | Last modified 9/10/2015 3:15 pm by Ray Borduin | 906 views | 3 replies |

mrobben375515

child not displaying correctly

I created a data model using Model Database. The database I am using is defined using the Dynamic My SQLi Connection and test is successful. I have a categories table and an inductees table, where there is 1 unique category title in the categories table, but many inductees could also be tagged with that category. I created a MySQLi Recordset titled category. In the advanced mode, I used the Query Builder to create the SQL statement

"SELECT inducteecat.*, inductees.*
FROM inducteecat INNER JOIN inductees ON inducteecat.category = inductees.category LIMIT 1"

When run the test, the SQL statement returns 60 records which is how many inductees I have. But data in the columns reported is not correct. The category field from the category table matches the category field in the inductee's field, but the inductees last name, class year and image name are blank, and the firstname field is reporting the inductees class year. What do you think is happening?

Sign in to reply to this post

Ray BorduinWebAssist

I can't say. The query looks correct. Have you tried running that query in PHPMyAdmin? Does it work on the page or is it just Dreamweaver's test function causing issues?

Sign in to reply to this post
Did this help? Tips are appreciated...

mrobben375515

I went to mysql and ran the following script. It reported all lines and fields as expected.

SELECT `years`.`year`, `inductees`.`year`, `inductees`.`lastname`
FROM years INNER JOIN inductees on `years`.`year` = `inductees`.`year`
ORDER BY `years`.`year` ASC

Sign in to reply to this post

Ray BorduinWebAssist

Try using that query instead on your page. I think the issue is that you are using a column named "year" which is a reserved word in MySQL. You should avoid column names like that.

Sign in to reply to this post
Did this help? Tips are appreciated...

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