Jump to content

Register PHP


anton_1

Recommended Posts

Hey guys, This has been driving me crazy all day. It wont process

 

Any Ideas?

 

<?php

 

mysql_connect('localhost', 'web101-db1-1', 'mypassword');

mysql_select_db('web101-db1-1');

 

   

$username = $_POST['username'];

$password = $_POST['password'];

 

$sql="INSERT INTO regme (id, username, password) VALUES ('NULL','$username','$password')";

           

            $result = mysql_query($sql);

           

            if(!$result) {

            {

                die('Error: ' . mysql_error());

               

            }

            else {

           

            echo "<p>Done!.</p>";

           

            }

       

    }

 

?>

 

thanks guys

Link to comment
https://forums.phpfreaks.com/topic/244242-register-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.