Jump to content

create table using id as name


adi123

Recommended Posts

I have a table in my database for users. On the registration page I want to create another table with the id of the user as the table name.

 

$sql = "CREATE TABLE IF NOT EXISTS `id_prod` (

)

 

how do i modify this line so that it takes the id from the user table and creates a new table with id as name followed by prod.

Link to comment
https://forums.phpfreaks.com/topic/212773-create-table-using-id-as-name/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.