Re: problem with login script

From: Date: Thu, 13 Jun 2002 04:39:58 +0000
Subject: Re: problem with login script
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-19779@lists.php.net to get a copy of this message
On Thursday 13 June 2002 06:00, suman wrote: > hi > when i execute this script i an error > -----------------------------------------------------------------------func >tion > > this func is in file functions.php and the func deletecookies(); > > auuser($login,$passwd) > { > global $db_server,$http_host,$db,$db_user,$db_pass,$doc_root; > [snip] > -------------------- > this is the file login.php > > <? > require 'functions.php'; > [snip] > --------------------------------------- > i get this error > > > function auuser($login,$passwd) { global > $db_server,$http_host,$db,$db_user,$db_pass,$doc_root; return 0; } if( > ($arr=pg_fetch_array($result,0,PGSQL_BOTH)) && ($passwd==$arr["passwd"] > && > $passwd!="") ) return 1; else return 0; } function Dispalyerrmsg ( $message > ) { printf(" [snip] PHP code in functions.php must be enclosed within <?php ... ?> -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* "Home life as we understand it is no more natural to us than a cage is to a cockatoo." -- George Bernard Shaw */

« previous php.db (#19779) next »