Hi,
Iv'e been reading through all the different posts and searching the web all day and I am not sure what went wrong I am getting this error
"Parse error: syntax error, unexpected T_STRING in /home/gamersh1/public_html/database/register.php on line 9"
Code: Register.php
<?php
include ('mysql.php');
if(isset($_POST['submit'])){
$username = ($_POST['username']);
$password = ($_POST['password']);
$sql = mysql_query("INSERT INTO users (user_id, username, user_password, user_regdate)
VALUES("hi","$username","$password","beta")
?>
<form action="register.php" method="post">
<input type="text" name="username">
<input type="password" name="password">
<input type="submit" name="submit" value="Register">
</form>
And the i also have my mysql connect page: mysql.php
<?php
$host = 'localhost'; // mysql server domain
$user = 'root'; // mysql username
$pass = 'root'; // mysql password
$db = 'dinopanel'; // mysql database name
'$connect' = '@mysql_connect($host,$user,$pass) or die ('Error connecting to database'))'
$select = @mysql_sellect_db($db,$connect) or die ('Error selecting database');
?>
Can any of you see any errors in this I am new to php and mysql