bigtoe
Posts: 115
|
Posted: 06/30/2004, 11:02 PM |
|
I have a table called "T_ADM_HIST_PHY_EXAM_1"
I used application builder to automatically generate two forms:
T_ADM_HIST_list.php
T_ADM_HIST_maint.php
I did not make any changes to the php files.
Just published them immediately to see the initial performance.
I entered the URL in my browser:
http:// ... /T_ADM_HIST_maint.php
This showed me the form and I entered some test data
and clicked on "Add".
(I checked the MySQL database and yes the data does
get added to the "T_ADM_HIST_PHY_EXAM_1" table.)
Then I see the URL in the browser
http:// ... /T_ADM_HIST_list.php?
The web page shows:
Parse error: parse error, unexpected T_STRING in
/ ... /T_ADM_HIST_list.php on line 2386
What caused this Parse error?
How can this be fixed?
|
|
|
Last Hero
|
Posted: 06/30/2004, 11:59 PM |
|
Code,code, give some code !
|
|
|
bigtoe
Posts: 115
|
Posted: 07/01/2004, 1:14 AM |
|
I think I fixed the problem. Lines 2384 to 2390 look like this
2384 $this->Where = $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this- >wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp-> opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND (false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(fals e, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $t his->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this-> wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->o pAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND( false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false , $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $th is->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->w p->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp
2385 ->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opA ND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(fa lse, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->Criterion[1], $thi s->wp->Criterion[2]), $this->wp->Criterion[3]), $this->wp->Criterion[4]), $this->wp->Criterion[5]), $this->wp->Criterion[6]), $this->wp->Criterion[7]), $this->wp->Criterion[ 8]), $this->wp->Criterion[9]), $this->wp->Criterion[10]), $this->wp->Criterion[11]), $this->wp->Criterion[12]), $this->wp->Criterion[13]), $this->wp->Criterion[14]), $this-> wp->Criterion[15]), $this->wp->Criterion[16]), $this->wp->Criterion[17]), $this->wp->Criterion[18]), $this->wp->Criterion[19]), $this->wp->Criterion[20]), $this->wp->Criteri on[21]), $this->wp->Criterion[22]), $this->wp->Criterion[23]), $this->wp->Criterion[24]), $this->wp->Criterion[25]), $this->wp->Criterion[26]), $this->wp->Criterion[27]), $t his->wp->Criterion[28]), $this->wp->Criterion[29]), $this->wp->Criterion[30]), $this->wp->Criterion[31]), $this->wp->Criterion[32]), $this->wp->Criterion[33]), $this->wp->Cr iterion[34]), $this->wp->Criterion[35]), $this->wp->Criterion[36]), $this->wp->Criterion[37]), $this->wp->Criterion[38]), $this->wp->Criterion[39]), $this->wp->Criterion[40] ), $this->wp->Criterion[41]), $this->wp->Criterion[42]), $this->wp->Criterion[43]), $this->wp->Criterion[44]), $this->wp->Criterion[45]), $this->wp->Criterion[46]), $this->w p->Criterion[47]), $this->wp->Criterion[48]), $this->wp->Criterion[49]), $this->wp->Criterion[50]), $this->wp->Criterion[51]), $this->wp->Criteri
2386 on[52]), $this->wp->Criterion[53]), $this->wp->Criterion[54]), $this->wp->Criterion[55]), $this->wp->Criterion[56]), $this->wp->Criterion[57]), $this->wp->Criterion[58]), $t his->wp->Criterion[59]), $this->wp->Criterion[60]), $this->wp->Criterion[61]), $this->wp->Criterion[62]), $this->wp->Criterion[63]), $this->wp->Criterion[64]), $this->wp->Cr iterion[65]), $this->wp->Criterion[66]), $this->wp->Criterion[67]), $this->wp->Criterion[68]), $this->wp->Criterion[69]), $this->wp->Criterion[70]), $this->wp->Criterion[71] ), $this->wp->Criterion[72]), $this->wp->Criterion[73]), $this->wp->Criterion[74]), $this->wp->Criterion[75]), $this->wp->Criterion[76]), $this->wp->Criterion[77]), $this->w p->Criterion[78]), $this->wp->Criterion[79]), $this->wp->Criterion[80]), $this->wp->Criterion[81]), $this->wp->Criterion[82]), $this->wp->Criterion[83]), $this->wp->Criterio n[84]), $this->wp->Criterion[85]), $this->wp->Criterion[86]), $this->wp->Criterion[87]), $this->wp->Criterion[88]), $this->wp->Criterion[89]), $this->wp->Criterion[90]), $th is->wp->Criterion[91]), $this->wp->Criterion[92]), $this->wp->Criterion[93]), $this->wp->Criterion[94]), $this->wp->Criterion[95]), $this->wp->Criterion[96]), $this->wp->Cri terion[97]), $this->wp->Criterion[98]), $this->wp->Criterion[99]), $this->wp->Criterion[100]), $this->wp->Criterion[101]), $this->wp->Criterion[102]), $this->wp->Criterion[1 03]), $this->wp->Criterion[104]), $this->wp->Criterion[105]), $this->wp->Criterion[106]), $this->wp->Criterion[107]), $this->wp->Criterion[108]), $this->wp->Criterion[109]), $this->wp->Criterion[110]), $this->wp->Criterion[111]), $this->wp->Criterion[112]), $this->wp->Criterion[113]);
2387 }
2388 //End Prepare Method
2389
2390 //Open Method @117-F5DDB2BB
So I joined lines 2384, 2385 and 2386
$this->Where = $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false, $this->wp->opAND(false,
... (snipped for this posting)
$this->wp->Criterion[109]), $this->wp->Criterion[110]), $this->wp->Criterion[111]), $this->wp->Criterion[112]), $this->wp->Criterion[113]);
}
//End Prepare Method
//Open Method @117-F5DDB2BB
Now the parse error is gone.
|
|
|
Last Hero
|
Posted: 07/02/2004, 3:01 AM |
|
Are you shure that you need this search?
Very big sql if all data in search record filled...
|
|
|
bigtoe
Posts: 115
|
Posted: 07/02/2004, 3:30 AM |
|
You are right.
I do not need such a big search.
This is what was generated by CCS.
I am new to CCS.
I just wanted to see what the pages looked like.
But I got this parse error so I was trying to figure it out.
After taking care of this parse error, I did cut down the search criteria by 90%.
I would assume that a tool like CCS would insert some EOL in some deterministic manner to prevent the file transfer system (or any other program) from doing it in an arbitrary manner.
This parse error happened because the criteria line was too long and somewhere the EOLs were inserted by ??? (I don't know what.)
|
|
|
|