I'm writing a script for my layout database admin center. Basically, it's where admin can log in and add new layouts.
Within a database, i have 2 tables. Table 1 is "series". Table 2 is "layouts".
In "series" table, i have "serid" (id of series) and "sername" (name of series). Examples of series are nature, celebrities...
In "layouts" table, i have "id", "name" (name of layout), "artist", and "viewhtml" (the URL to view the layout).
I add new layouts through a form on "add.php" and it inserts data right into the table "layouts" .
Now, i want to add the series which the layout belongs to (nature, celebrities, blah...) by connecting table "layouts" to table "series". I'm trying to insert the row "serid" into table "layouts". The options of the series should appear on add.php.
How can i do that? I hope you're not lost. I've tried my best to explain it...
Within a database, i have 2 tables. Table 1 is "series". Table 2 is "layouts".
In "series" table, i have "serid" (id of series) and "sername" (name of series). Examples of series are nature, celebrities...
In "layouts" table, i have "id", "name" (name of layout), "artist", and "viewhtml" (the URL to view the layout).
I add new layouts through a form on "add.php" and it inserts data right into the table "layouts" .
Now, i want to add the series which the layout belongs to (nature, celebrities, blah...) by connecting table "layouts" to table "series". I'm trying to insert the row "serid" into table "layouts". The options of the series should appear on add.php.
How can i do that? I hope you're not lost. I've tried my best to explain it...