thenewprogrammer
New Member
- Messages
- 45
- Reaction score
- 0
- Points
- 0
Having problems trying to get 3 differnt values into one field(birthday,birthmonth,birthyear)
found out i cant assign more than one value to variable like this
and wondering if and how i can set this into array. this outputs nothing and when i give them differnt varables and try to put it into same field only the first one shows.
found out i cant assign more than one value to variable like this
and wondering if and how i can set this into array. this outputs nothing and when i give them differnt varables and try to put it into same field only the first one shows.
Code:
$birthday=strip_tags($_POST['birthday']);
$birthday=strip_tags($_POST['birthmonth']);
$birthday=strip_tags($_POST['birthyear']);
$sql="INSERT INTO temp SET code='$confirm_code',user_name='$name',user_email='$email',user_password='$pass', user_gender='$gender',user_birthday='$birthday'";
$result=mysql_query($sql);
Last edited: