php - Variable based tables -
is possible create variable influenced table?
like instead of creating standard table. can let users create custom table. on sign can create table
under database , table's name influenced php variable? , same thing fields in table?
for example, $username.table
tables , $username_field
fields in table?
why? need user able add fields need. sort of letting them create onlin form
then need engineer database allow this. not lazy , create tables form fields. not security risk, never scale well. here poor example of how engineer table based system handle dynamic form generation.
drop table "main"."form"; create table "form" ( "id" integer not null, "name" text not null, primary key ("id") ); drop table "main"."form_field"; create table "form_field" ( "form" integer not null, "id" integer not null, "name" text not null, primary key ("form", "id") );
hopefully imagination can take here.
Comments
Post a Comment