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 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) 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! 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! Link to comment https://forums.phpfreaks.com/topic/244242-register-php/#findComment-1254462 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.