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

 SQL syntax shortcoming inCCS 1.0.7 and Mysql + PHP

Print topic Send  topic

Author Message
Mario
Posted: 02/13/2003, 5:13 AM

When building an SQL queries CCS don't enclose column names into a back single quotes (`). Then, if table has a column named Order or Select, PHP script generated was crashes :(((
RonB
Posted: 02/13/2003, 6:26 AM

I don't know if this is a shortcomming. The mysql manual clearly states a list of reserved words. I think it's a good designing practice not to use these words as table or field names. To correct the problem all you have to do is add a prefix. Like client_order, supplier_order. This also ensures you will not run into trouble with fieldnames being identical when you have to join tables.
client order has cl_order_id and supplier_order has supp_order_id.

Ron

   


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

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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