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

Abdussamad Abdurrazzaq abdussamad at abdussamad.com
Sun Aug 25 00:23:38 UTC 2013


Your php is incorrect:

http://www.php.net/manual/en/language.variables.scope.php

On 08/25/2013 04:40 AM, BenderisGreat wrote:
> 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.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list