config.php page
<?php
$localhost ="localhost"; $dbuser = "userxx"; not real passwords ! $dbpassword = " xxxx"; $dbname = "xxxxxxx"; $connect = mysql_connect ($localhost,$dbuser,$dbpassword); mysql_select_db ($dbname,$connect); ?>
----------------------------------------------------------------------
registration.php page
<?php if (isset ($_POST['submit'])){ include_once ('config.php'); }
$name = $_POST['name']; $lname = $_POST['lname']; $uname = $_POST['uname']; $email = $_POST['email']; $pword = $_POST ['pword']; $insert = ('INSERT INTO users (name,lname,uname,email,pword) VALUES('$name','$lname','$uname','$email','$pword')'); // I have tryed alot of different way for the INSERT INTO and VALUE functions. mysql_query ($insert); ?>
// Iam a nubie at this just trying to get the basics to work any advice would help thanks !