Hi there,
I have created a register page. but for some reason when i test it the details cannot be entered into my database.
Here is my db code:
<?php
function db_connect()
{
$result = mysql_pconnect('localhost', 'reg_user', 'password');
if (!$result)
return false;
if (!mysql_select_db('register'))
return false;
return $result;
}
?>
Please,please help me here.
This is my insert into db code::
$result = mysql_query("insert into user values
('$username', password('$password'), '$email' '$mimetype')");
if (!$result)
return 'Could not register you in database - please try again later.';
return true;
On my web page when i click submit i get the 'Could not register you in...
Please help me remedy the problem.
Thanks.
Kevin.