CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 fatal error

Print topic Send  topic

Author Message
erdem
Posted: 09/11/2002, 1:08 AM

Description Fatal error: Call to a member function on a non-object in /disk1/home/erdem/public_html/test/ILANarsa_maint_events.php on line 19

function Page_AfterInitialize() { //Page_AfterInitialize @1-56434BCA

//Custom Code @36-2A29BDB7
// -------------------------
global $ILANarsa;
global $redirect;
global $dberdemdb;
$current_TASK = ccgetparam("arsa_NO","");
if($current_TASK != 0 && ccgetuserid() !=ccdlookup("ilanveren_NO","ILANarsa","arsa_NO=".
$dberdemdb->tosql($current_TASK,ccsInteger),$dberdemdb)) { //line 19
//ILANarsa->visible = false;
$redirect="ILANarsa_list.php";
//$tasks->updateallowed=false;
//$tasks->deleteAllowed=false;
}
// -------------------------
//End Custom Code

} //Close Page_AfterInitialize @1-FCB6E20C


i do not know php and i cant understand which one is connection variable???

Is " $current_TASK or arsa_NO" connection variable?

Nicole
Posted: 09/14/2002, 4:36 AM

Erdem,
PHP is case sensitive. Before using CCDLookUP() function you should declare connection variable.
E.g.:
global $DBconnection_name;

the name should starts with "DB" in uppercase. Look up "connection_name" in project explorer tree.


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.