[wp-hackers] Creating / Inserting into Table named after WP Username

BenderisGreat greglancaster71 at gmail.com
Sat Aug 24 23:40:01 UTC 2013


I have tried it with no success;


$sql="INSERT INTO 'tracking_users' '.GLOBAL $current_user->user_login.'
VALUES ($_POST[firstname]')";

as well as :

$db_name = $current_user->user_login;
function addit() {
GLOBAL $db_name;
}

$sql="INSERT INTO 'tracking_users' ('.$db_name.') VALUES
($_POST[firstname]')";



--
View this message in context: http://wordpress-hackers.1065353.n5.nabble.com/Creating-Inserting-into-Table-named-after-WP-Username-tp42095p42097.html
Sent from the Wordpress Hackers mailing list archive at Nabble.com.


More information about the wp-hackers mailing list