shortkid422 Posted December 21, 2003 Share Posted December 21, 2003 Im having a problem with this query, can someone help me out? $query1 = "INSERT INTO user(username, userpassword, email) VALUES(\'$username\',\'$userpassword\',\'$email\')"; $result1 = mysql_query($query1) or die(mysql_error()); Quote Link to comment https://forums.phpfreaks.com/topic/1536-query-problem/ Share on other sites More sharing options...
Barand Posted December 21, 2003 Share Posted December 21, 2003 What error message do you get? Quote Link to comment https://forums.phpfreaks.com/topic/1536-query-problem/#findComment-5043 Share on other sites More sharing options...
shortkid422 Posted December 22, 2003 Author Share Posted December 22, 2003 i got it fixed, somewhat. There needed to be a space by the user( part. But one problem that im having is the values are not being passed by the form. Here it is: <?php session_start(); ?> <form action="register_member.php" method="post"> <table> <tr> <td>Please enter your desired username here:</td><td><input type="text" name="" value="<?php echo $username ?>"></td> </tr> <tr> <td>Enter your password that will be used:</td><td><input type="text" name="" value="<?php echo $user_password1 ?>"></td> </tr> <tr> <td>Please re-enter your password again:</td><td><input type="text" name="" value="<?php echo $user_password2 ?>"></td> </tr> <tr> <td>Now please enter your valid email address:</td><td><input type="text" name="" value="<?php echo $email ?>"></td> </tr> <tr> <td><input type="submit" value="Register!"></td><td><input type="reset" value="Clear"></td> </tr> </table> </form> Quote Link to comment https://forums.phpfreaks.com/topic/1536-query-problem/#findComment-5053 Share on other sites More sharing options...
Barand Posted December 22, 2003 Share Posted December 22, 2003 Give your form input fields names - username, userpassword & $email Quote Link to comment https://forums.phpfreaks.com/topic/1536-query-problem/#findComment-5060 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.