Iam doing a website in wordpress and i want to send registration data of frontend users to my database.
Please assit.
Stephano
0
Newbie Poster
Recommended Answers
Jump to PostHave you got a form?
Do you have a database schema we can see?
Are you using a DB abstraction layer or mysqli/PDO?
Do you have any code of your own or were you expecting us to do it for you?This question is inadequate as it is.
Jump to Postin the $SQL you just gave only four fields to be INSERTED so its either
You delete the NULL from the VALUES so
$SQL = "INSERT INTO
safaris8_wo5946
.wp_vkfj_users
(user_login
,user_pass
,user_email
,user_phone
)
VALUES ('$username', '$password', '$email','$phone')"Or you add the id field to the fiedls to be updated so
$SQL …
Jump to Post@Stephano: not working in what sense. Is the form still submitting only three fields or not working at all.
All 9 Replies
diafol
Stephano
commented:
dd_action("gform_registration", "input_fields", 0, 30); function input_fields($entry, $form){ global $wpdb; $entry["1"] = '$us
+0
cereal
commented:
:)
+13
pixelsoul
272
Red Pill
Featured Poster
Stephano
0
Newbie Poster
Gideon_1
15
Junior Poster
Stephano
commented:
not working, still. i replaced this with what i had but still not working. this form is in a wordpress website.
+0
Gideon_1
15
Junior Poster
Stephano
commented:
yes it is still submitting 3. iam realy not sure why at this point.
+0
diafol
Mann_Youth
0
Newbie Poster
Mann_Youth
0
Newbie Poster
Gideon_1
15
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.