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

Gregory Lancaster greglancaster71 at gmail.com
Mon Aug 26 17:53:45 UTC 2013

I considered that, but I have no idea how to match the user id owning a
row- I am trying to figure that out now.  Its actually why I posted here,
looking for a way to grab the active user ID or login_name and match it to
a table or row.  I tried INSERT INTO $table and that wont work, nor will
any variation with quotes or curly brackets.

On Mon, Aug 26, 2013 at 9:53 AM, Otto <otto at ottodestruct.com> wrote:

> On Mon, Aug 26, 2013 at 11:46 AM, Gregory Lancaster
> <greglancaster71 at gmail.com> wrote:
> > so i still have the same issue- how to steup the sql to create the table
> so
> > it matches the current active user.
> You shouldn't have one table per user. There's no case where that makes
> sense.
> Instead, take your existing table structure, and add a user_id column
> onto it to connect the various rows with a specific user.
> -Otto
> _______________________________________________
> 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