[PHP-DB] Cookie Values being Displayed

2001-05-23 Thread James McLaughlin

Does anyone know what would cause a cookie value to be printed on a web
page.
Here is my cookie code

if ($access_level == 5)


$region5 = PYou have Level 5 Access/p;
$cookie_name = acc5;
$cookie_value = true;
$cookie_expire = ;
setcookie($cookie_name, $cookie_value, $cookie_expire, /);
}


It puts the value of true on the web page if they refresh it.
IS there an error in the code there that would cause that?

Also are sessions easier to work with when assigning multiple cookie values
?

ANy help is muchly appreciated.

Kat



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] Include File Syntax

2001-04-26 Thread James McLaughlin

This is my first time programming with PHP.  I have seen include files in
the beginning of a php block and wonder is there a specific syntax used in
these files and how secure this is vs code in my .php page?

Can someone show me a small example of what the include file might look like
that would contain variables for  $mysql server, $username $password and
$db_name.

Any comments you may have about security involving files containing these
variables and where to store them would be greatly appreciated.



Thanks In Advance.


Kat


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]