CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Bookstore exampe AdminEditorials with PHP/MySQL

Print topic Send  topic

Author Message
xbill
Posted: 08/30/2002, 3:01 PM

xbill
Posted: 08/30/2002, 3:02 PM

Hi-

I have been working the Bookstore example
with Mysql/PHP4 templates on CodechargeStudio.

On the AdminEditorials page- the table is built
with a SQL data source. I got this runtime error
when I went to the page:

Database error: Invalid SQL: SELECT COUNT(*) FROM bs_editorial_categories INNER JOIN ( bs_editorials LEFT JOIN bs_items ON bs_editorials.item_id = bs_items.item_id) ON bs_editorial_categories.editorial_cat_id = bs_editorials.editorial_cat_id
MySQL Error: 1064 (You have an error in your SQL syntax near '( bs_editorials LEFT JOIN bs_items ON bs_editorials.item_id = bs_items.item_id) ' at line 1)
Session halted.

It looks like mysql does not like the inner join-
has anyone else seen this error before?

thanks,
-bill
Andrew
Posted: 08/31/2002, 5:50 AM

Yes, I've had this problem. The INNER JOIN ... ON syntax is only supported on more recent versions of MySQL.

Nicole gave a good workround that I have found successful, but it does mean re-creating the SQL sources:

http://www.gotocode.com/disc_viewt.asp?mid=13806&s_topic=+JOIN&



Andrew

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.