CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 PHP + MySQL problem

Print topic Send  topic

Author Message
R Sens
Posted: 09/23/2002, 2:04 AM

Hello,

I've got a problem with every SQL statement generated by CCS.

For example 'Select 'Login','Password' from userlogin.....

Each fieldname is embedded in '', which creates a syntax error during
runtime. These '' shouldn't be there. Anyone having the same problems of is
there a solution somewhere. I'm using PHP4 + templates.

Thank you,

Ron

Sixto Luis Santos
Posted: 09/23/2002, 5:58 AM

Hello Ron,

CCS is not to blame here, but your MySQL version. If within your power, you
should upgrade your MySQL server to a newer version (http://www.mysql.com).
Other options are to either do a global search and replace with a good text
editor (low risk as the ` character is seldom used), or to modify MySQL.xml
under \Program Files\CodeChargeStudio\Components\Databases\. (and this i do
not recommend, but if you do it anyway, you do under your own risk)

In MySQL.xml locate:

fieldLeftDelim="`"
fieldRightDelim="`"

And change to:

fieldLeftDelim=""
fieldRightDelim=""

As always, make a copy of the original MySQL.xml file before you begin.

After saving the modified file, restart CCS, reload your project and regen.

Good luck,
Sixto

"R Sens" <info@sensoft.nl> wrote in message
news:ammlfd$vqf$1@news.codecharge.com...
> Hello,
>
> I've got a problem with every SQL statement generated by CCS.
>
> For example 'Select 'Login','Password' from userlogin.....
>
> Each fieldname is embedded in '', which creates a syntax error during
> runtime. These '' shouldn't be there. Anyone having the same problems of
is
> there a solution somewhere. I'm using PHP4 + templates.
>
> Thank you,
>
> Ron
>
>

R Sens
Posted: 09/23/2002, 7:08 AM

Thank you, that was exactly what I was looking for.

Upgrading MySQL is also an option, as we are using our own webserver. But
for the moment changing the XML was enough.

Ron


"Sixto Luis Santos" <sixto@tecnoapoyo.com> wrote in message
news:amn355$oh0$1@news.codecharge.com...
> Hello Ron,
>
> CCS is not to blame here, but your MySQL version. If within your power,
you
> should upgrade your MySQL server to a newer version
(http://www.mysql.com).
> Other options are to either do a global search and replace with a good
text
> editor (low risk as the ` character is seldom used), or to modify
MySQL.xml
> under \Program Files\CodeChargeStudio\Components\Databases\. (and this i
do
> not recommend, but if you do it anyway, you do under your own risk)
>
> In MySQL.xml locate:
>
> fieldLeftDelim="`"
> fieldRightDelim="`"
>
> And change to:
>
> fieldLeftDelim=""
> fieldRightDelim=""
>
> As always, make a copy of the original MySQL.xml file before you begin.
>
> After saving the modified file, restart CCS, reload your project and
regen.
>
> Good luck,
> Sixto
>
> "R Sens" <info@sensoft.nl> wrote in message
>news:ammlfd$vqf$1@news.codecharge.com...
> > Hello,
> >
> > I've got a problem with every SQL statement generated by CCS.
> >
> > For example 'Select 'Login','Password' from userlogin.....
> >
> > Each fieldname is embedded in '', which creates a syntax error during
> > runtime. These '' shouldn't be there. Anyone having the same problems of
> is
> > there a solution somewhere. I'm using PHP4 + templates.
> >
> > Thank you,
> >
> > 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.