Also you can set up php to show you all warnings and display them for you.
In the php.ini file you can change some values so that you can do some
Here are the values you can change:
display_errors = On
display_startup_errors = On
error_log = syslog
error_log = filename
Having display_errors on will display errors to you when you run them.
Display_startup_errors will show startup errors that php has if any. Or you
can have all errors go to syslog or have error_log = filename go to a
specific file for you. This has helped me debug many scripts that did not
display errors for me.
From: DARCY,MATTHEW (Non-HP-UnitedKingdom,ex2)
Sent: Thursday, March 07, 2002 7:52 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Script Debug.
someone was helping me with this last night at home, but now I am in work I
am still struggling.
I have a user_auth script what works fine, it registers the username and
password as session variables then matches them to the rows entered in the
database - if they don't match it unregisters the session vars, if it does i
would like to ti register a new sesson var called user_auth_level (ie how
much authorisation this user has) this is the part of the script that does
that. When I print the $user_auth_level I get null ? can any one help.
$auth_select = "select account_admin_level from account_details where
username='$login_username'"; $run_auth_select = mysql_query($auth_select);
$run_auth_select_results = mysql_fetch_row($run_auth_select);
$user_auth_level = $run_auth_select_results;
<FONT FACE=arial COLOR=white SIZE=3>
<H1> Access Granted </H1>
Welcome you are fully logged into testsite.com
your access level is <? print $user_auth_level ?>
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php