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
*/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php