Hi all, I'm new so please be forgiving if my question appears stupid.
Thanks to Motoma and his fine class script, I was able to put together a very nice looking template.
I am using mysql for the database and have the data pretty well normalized. The mysql tables are all set to use the Innodb engine which is a lot more strict than the regular Myisam.
With Innodb, someone attempting to enter data into a child table before first entering the proper data into the parent table will have an error thrown. MyIsam is not this way, or at least that is not what I have experienced. This is what leads to wonder.
When it comes to the point that I want to create an edit template for this db, and seeing as how my data is "here and there" throughout the database, I am wondering how to tell php or even if I need to.... to *first* put the data from textbox 1 into the parent table so the entire insert doesn't fail.
In other words, if I have two tables like this:
and I have an insert form with all of the fields from table1 and table 2, the data will need to be inserted into table 1 first.
How does one deal with this situation?
Thanks to Motoma and his fine class script, I was able to put together a very nice looking template.
I am using mysql for the database and have the data pretty well normalized. The mysql tables are all set to use the Innodb engine which is a lot more strict than the regular Myisam.
With Innodb, someone attempting to enter data into a child table before first entering the proper data into the parent table will have an error thrown. MyIsam is not this way, or at least that is not what I have experienced. This is what leads to wonder.
When it comes to the point that I want to create an edit template for this db, and seeing as how my data is "here and there" throughout the database, I am wondering how to tell php or even if I need to.... to *first* put the data from textbox 1 into the parent table so the entire insert doesn't fail.
In other words, if I have two tables like this:
Code:
Table1 [u]table1_ID[/u] field1 field2 Table2 [u]table2_ID[/u] [u]table1_ID[/u] field1 field2
How does one deal with this situation?
Comment