FET
|
| Posted: 05/21/2002, 7:02 AM |
|
I am using the Session("Userid") to fill in a database field(MySQL). I always get "Parse error: parse error in c:/apache/htdocs/testnew/test.php on line 359" then I do the live view (this is the line in code that refers to the UserID). Works fine when I load it to my web site,which is also on the local machine. All other aspects of the CC2.0 code is working fine.
Any ideas, thank you.
fet
|
|
|
 |
Nicole
|
| Posted: 05/21/2002, 7:48 AM |
|
Fet,
what is 359 line?
|
|
|
 |
fet
|
| Posted: 05/21/2002, 8:54 AM |
|
See below for line 359 --
// Load all fields into variables from recordset or input parameters
//-------------------------------
if($bIsUpdateMode)
{
$fldClientID = $db->f("ClientID");
//-------------------------------
// Load data from recordset when form displayed first time
//-------------------------------
if($stestErr == "")
{
$fldVefID = $db->f("VefID");
$fldVessel_Name = $db->f("Vessel_Name");
}
//-------------------------------
// test ShowEdit Event begin
// test ShowEdit Event end
//-------------------------------
}
else
{
if($stestErr == "")
{
line 359 --- $fldClientID= "Session("UserID")";
}
//-------------------------------
// test ShowInsert Event begin
// test ShowInsert Event end
//-------------------------------
}
|
|
|
 |
Nicole
|
| Posted: 05/22/2002, 12:08 AM |
|
Fet,
line 359 should be:
$fldClientID= Session("UserID");
without quotes around variable value.
|
|
|
 |
|