Hi Alvin,
> I'm new to both PHP and mySQL but have no choice but to "crash-course" on
> both before end of mid of march to complete my University project. I would
> really appreciate alittle help from any kind soul out there.
>
> I have already created a mySQL database and create all the tables *
EMAIL PROTECTED]>
Sent: Thursday, December 13, 2001 11:46 AM
Subject: RE: [PHP-DB] Connecting to MySQL Database
> Try moving session_start to the very top of the script (above the require
> statement), and then place the session_register on the line immediately
> below session_
would be to put all the session information at the very top of the script.
- Jonathan
-Original Message-
From: Michael Elliott [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 8:40 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Connecting to MySQL Database
Alright here goes
Alright here goes.
This is my login function:
function login($username, $password)
// check username and password with db
// if yes, return true
// else return false
{
// connect to db
$conn = db_connect();
if (!$conn)
return 0;
// check if username is unique
$result = mysql_query("
Can you show us the code that checks the username and password to see if
they're correct?
Is this a custom admin page that you created?
If your page is authenticating against the "mysql" database, then you should
know that MySQL encrypts the password and stores the encrypted password.
So if y