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?
|
|
|
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 {
|
|
|
bigtoe
Posts: 115
|
Posted: 06/29/2004, 7:49 AM |
|
CCS version is 2.2.3.60
|
|
|
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.
|
|
|
|
|
|
|
|