$sql = "INSERT INTO memberadd (username,password,profilepic) VALUES ('$username','$password','$profilepic')";
The code above is register with image upload
$imagedataprofile = "INSERT INTO imagedbgallery (postid,imageupload) VALUES ('$postid','$profilepic')";
the code above is trying to pass the data to another table
my memberadd table (below)
userid(PK) | username | password | profilepic
my imagedbgallery table (below)
imageid(PK) | userid | imageupload
the things that i try to achieve is that when user insert a record: memberadd table will show
1 | tommy | 12345 |tommyprofile.png
and in imagedbgallery table will show
1,1,tommyprofile.png
=========================================================================== But when i tried to run the code,
memberadd table will show
1 | tommy | 12345 |tommyprofile.png
and in imagedbgallery table will show
1,0,tommyprofile.png