anton_1 Posted August 8, 2011 Share Posted August 8, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/244242-register-php/ Share on other sites More sharing options...
WebStyles Posted August 8, 2011 Share Posted August 8, 2011 remove extra } from end.... and one from if(!$result) { (you have 2) Quote Link to comment https://forums.phpfreaks.com/topic/244242-register-php/#findComment-1254452 Share on other sites More sharing options...
anton_1 Posted August 8, 2011 Author Share Posted August 8, 2011 thank you again for your help! it works now! briliant! Quote Link to comment https://forums.phpfreaks.com/topic/244242-register-php/#findComment-1254461 Share on other sites More sharing options...
AyKay47 Posted August 8, 2011 Share Posted August 8, 2011 thank you again for your help! it works now! briliant! Quote Link to comment https://forums.phpfreaks.com/topic/244242-register-php/#findComment-1254462 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.