[PHP] parse error in line??

2002-05-29 Thread Webby

?
require 'common.php';

function DisplayErrMsg($message)
{

printf (blockquoteblockquoteblockquoteh3fontcolor=\#cc\
%s/font/h3/blockquote/blockquote/blockqoute\n,$message);

}


function authenticateUser($user, $password)
{

global  $host, $httphost, $user_db, $password_db, $db, $docroot;

if (! ($link = mysql_pconnect($host, $user_db, $password_db)))
{

DisplayErrMsg(sprintf(internal Error %d: %s \n,
mysql_errno(), mysql_error() ));
DisplayErrMsg(sprintf(internal Error %s %s %s %d: %s \n,
$host, $user, $password, mysql_errno(), mysql_error() ));

return 0;

}
if (! ($result = mysql_db_query($db,select * from user_login
where userid = '$user')))
{
DisplayErrMsg(sprintf(internal Error %d: %s \n,
mysql_errno(), mysql_error() ));
return 0 ;

}

**/  when i run this script it's say parse error in this line 'i don't what
is wrong with this line
if (($row = mysql_fetch_array($result)) 
($password==$row[password]  $password ! = ))

return 1;

else

return 0;

}

function deleteCookies()
{
for ($i=0; $i$total_items; $i++)
{
setcookie(items_tray[$i],);
setcookie(quantity[$i],);
}

setcookie(items_tray,);
setcookie(total_items,);
setcookie(quantity,);

}

?


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




[PHP] include http problem

2001-11-20 Thread Mike Webby

include (http://www.somesite.com/somepage.html;);

Worked perfect on our unix box and our win98 machines but when we installed PHP on our
Windows server it no longer worked and tottaly ignored the include unless we used the 
path
instead like.

include (somepage.html); 

[EMAIL PROTECTED]