Dissonance
Technical User
Well, I'm trying to get a script to insert some form data into a mysql database. Config.php contains the MYSQL connect, and I've echo'd $link and it's connected.
Register.php
Register.php
Code:
<?php
include ('config.php');
$user=$_POST['username'];
$pass=$_POST['password'];
$md5pass = md5('$pass');
mysql_select_db("news");
$query = "INSERT INTO `users` ( `id` , `username` , `password` ) VALUES ( '', `".$user."` , `".$md5pass."`)";
mysql_query ($query);
// header('Location: index.php');
?>