CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 need help with parse error, unexpected ')',

Print topic Send  topic

Author Message
bigtoe

Posts: 115
Posted: 06/29/2004, 7:23 AM


I am new to CodeCharge.

In one page, I just changed a text field to a listbox.
Did this after reading the section in the Quick Start Turorial on pages 181-184.

I save the project and then published it to the server.
Then I go another PC and put the URL into my browser and I get this message in the browser:

Parse error: parse error, unexpected ')', expecting T_VARIABLE or '$' in /var/www/html/test/tns/01/tns_a/T_ADM_HIST_maint.php on line 192

MySQL and Apache are running just fine on this server.

I have not done any PHP coding changes to any page in this project.
I just changed this one text field to a listbox and made sure that the:
Connection
Source Type
Data Source
Bound Column
Text column
Data Type
were all pointing to the right set of data.

Please help me.
What is the problem here?
How can I fix this?


View profile  Send private message
Last Hero
Posted: 06/29/2004, 7:40 AM

Please send code from from T_ADM_HIST_maint.php from line 185 to line 200
and CCS version.
bigtoe

Posts: 115
Posted: 06/29/2004, 7:47 AM


Thanks for responding.

Here are lines 185 to 200


185 $this->F_AHPE_Bottom_Prompt_message_1 = new clsControl(ccsTextBox, "F_AHPE_Bottom_Prompt_message_1", "F AHPE Bottom Prompt Message 1", ccsText, "", CCGetRequestParam("F_AHPE_Bottom_Prompt_message_1", $Method));

186 $this->F_AHPE_Bottom_Prompt_message_2 = new clsControl(ccsTextBox, "F_AHPE_Bottom_Prompt_message_2", "F AHPE Bottom Prompt Message 2", ccsText, "", CCGetRequestParam("F_AHPE_Bottom_Prompt_message_2", $Method));

187 $this->Button_Insert = new clsButton("Button_Insert");

188 $this->Button_Update = new clsButton("Button_Update");

189 $this->Button_Delete = new clsButton("Button_Delete");

190 if(!$this->FormSubmitted) {

191 if(!is_array($this->F_AHPE_Mat_Hist_Maternal_Age->Value) && !strlen($this->F_AHPE_Mat_Hist_Maternal_Age->Value) && $this->F_AHPE_Mat_Hist_Maternal_Age->Value!== false)

192 $this->F_AHPE_Mat_Hist_Maternal_Age->SetText(--);

193 }

194 }

195 }

196 //End Class_Initialize Event

197

198 //Initialize Method @2-6B739F9A

199 function Initialize()

200 {


View profile  Send private message
bigtoe

Posts: 115
Posted: 06/29/2004, 7:49 AM

CCS version is 2.2.3.60
View profile  Send private message
Sixto Luis Santos
Posted: 06/29/2004, 8:27 AM

Hello there,

In one of your fields, specifically F_AHPE_Mat_Hist_Maternal_Age, you added
a literal string -- without enclosing it between quotes. Check the default
value for that field and add the quotes. i.e. "--" instead of --

Regards,

Sixto

"bigtoe" <bigtoe@forum.codecharge> wrote in message
news:540e17b7896ab7@news.codecharge.com...
>
> I am new to CodeCharge.
>
> In one page, I just changed a text field to a listbox.
> Did this after reading the section in the Quick Start Turorial on pages
> 181-184.
>
> I save the project and then published it to the server.
> Then I go another PC and put the URL into my browser and I get this
message in
> the browser:
>
> Parse error: parse error, unexpected ')', expecting T_VARIABLE or '$' in
> /var/www/html/test/tns/01/tns_a/T_ADM_HIST_maint.php on line 192
>
> MySQL and Apache are running just fine on this server.
>
> I have not done any PHP coding changes to any page in this project.
> I just changed this one text field to a listbox and made sure that the:
> Connection
> Source Type
> Data Source
> Bound Column
> Text column
> Data Type
> were all pointing to the right set of data.
>
> Please help me.
> What is the problem here?
> How can I fix this?
>
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

bigtoe

Posts: 115
Posted: 06/29/2004, 8:57 AM

Ok, got it.
That did it.
Thanks.

On a related note, how do I stop the default "Select Value" from showing up in a listbox.

The first value in my listbox is the prompt itself.

So "Select Value" is redundant.



View profile  Send private message

Add new topic Subscribe to topic   


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.