0
$wordpress_user_db_query = mysql_query("INSERT INTO cedsite_wrdp1.wp_users (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES
('".$username."', '".md5($pass)."', '".$username."', '".$email."', '', '".$date."', '', 0, '".$username."');");

Using PHP I am trying to do that, but it isn't working. Can someone help?

4
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by Dragonbaki
0

we need more information, how are you trying to use this? I see you are using Wordpress.

i.e. is it within a post? is it within a page? is it in a widget? is it in a custom template you are modifying on the backend? All would have different answers. I'll help if I can

Edited by design324095: n/a

0

try this

$wordpress_user_db_query = mysql_query("INSERT INTO cedsite_wrdp1.wp_users ( user_login , user_pass , user_nicename ,  user_email , user_url , user_registered , user_activation_key , user_status, display_name ) VALUES ('$username', 'md5($pass)', '$username', '$email', '', '$date', '', 0, '$username');");
0

Use only single quotes for inserting, not double quotes... this will give parser error... This will surely work fine

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.