CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 CC PHP3/4 & MySQL assistance

Print topic Send  topic

Author Message
Michael Weaver
Posted: 02/08/2001, 7:58 AM

So far I really enjoy CodeCharge. I've been able to generate the provided
examples on my computer while running PWS and using ASP. The problem is that
whenever I try to generate the code as PHP3 and Templates and use a MySQL
database on my local Apache server (ver 1.3.12) I get script errors.

The one I'm getting is: Fatal error: Call to unsupported or undefined
function preg_match() in ./template.php3 on line 187

That line, of course, is: if(preg_match("/^[\w\_][\w\_]*$/",$value))

If I generate it in PHP4 and templates, I get the following error: Parse
error: parse error in ./template.php on line 52

That line is: if($BTag === false)

My connection string is: Provider=MSDASQL.1;Persist Security
Info=False;User ID=root;Mode=Read|Write;Extended
Properties="DSN=MySQL;DB=design;SERVER=localhost;UID=root;PORT=3306;OPTION=0
;STMT=;"

As you can see, I even changed the user ID to root for the time being so I
could figure it out. I obviously didn't. I know that I screwed something up,
probably when I set up MySQL ... can anyone tell me what am I doing wrong?
Do you need more info.

m
--

michael weaver
TminusZero
www.TminusZero.com
803.695.0741



Alexey Alexapolsky
Posted: 02/08/2001, 8:30 AM

Hello Michael,


Mainly , it's all about PHP versions ,

> database on my local Apache server (ver 1.3.12) I get script errors.
>
> The one I'm getting is: Fatal error: Call to unsupported or undefined
> function preg_match() in ./template.php3 on line 187
>
> That line, of course, is:
if(preg_match("/^[\w\_][\w\_]*$/",$value))
>

When you work with PHP3 without templates , it all should be OK.
And when you use PHP3 + templates you version must be PHP3 >= 3.0.9.

> If I generate it in PHP4 and templates, I get the following error: Parse
> error: parse error in ./template.php on line 52
>
> That line is: if($BTag === false)

As to support of === operation , you must have PHP 4.0b3 or newer:
Please let me know if your database connection is working.

Regards,
Alexey
CodeCharge Support





   


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

MS Access to Web

Convert MS Access to Web.
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.