Jump to content

Archived

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

shortkid422

Query problem

Recommended Posts

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());

Share this post


Link to post
Share on other sites

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>

Share this post


Link to post
Share on other sites

×

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.