I haven't been following your whole thread on this issue, but I did notice
that the syntax for your include statement is incorrect. Try this:

<?
        include("functions.php");
?>

I've been working with includes recently and that's the standard syntax.
Furthermore, if you put the functions.php file in a different directory,
remember to use double slashes in the path (i.e.
path\\foo\\bar\\functions.php). Instead of the include(); statement, you
also have require(); at your disposal.

Hope this helps.
-----Original Message-----
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 2:15 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] problem with login script


On Friday 14 June 2002 03:23, suman wrote:
> hi
> adding the <? ?>in func.php still returns this.
>
> my functions script is
> -----------------------------------------------------------------

You need:

<?
  function auuser($login,$passwd)
  {
    ...
  }
?>


This

> <?include 'functions.php';

Should be:


  <? include 'functions.php';

> when i run these i get this error
> Parse error: parse error, unexpected ';' in
> /usr/local/apache/htdocs/sims/php/functions.php on line 12

In future please indicate which is line 12!

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *


/*
To thine own self be true.  (If not that, at least make some money.)
*/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to