CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Session("UserID") errors out in live view CC2.0

Print topic Send  topic

Author Message
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.


   


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.