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

Otto otto at ottodestruct.com
Mon Aug 26 16:53:23 UTC 2013


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


More information about the wp-hackers mailing list