0
I need to enter multiple records in the database, but without coming from a form. For example:
I have a 50 value (it would be the number of records I need to enter) and a mooring id that needs to be the same for all records.
My question is: how do I insert without having to come from a form these values?
I’ve tried with the examples here on the forum, but they all use values passed by forms.
In my case I have no form I have only the amount of records I need to enter.
It is only set the values can play inside a for or mount a single inset.
– rray
I tried, but I couldn’t.
– Agência Ozweb
@Rray can give me a light ?
– Agência Ozweb
There are some examples of how to mount the Insert or pick up the inserted id. https://answall.com/q/89841/91 e https://answall.com/q/94216/91
– rray
In the examples you don’t have the logic I need. As in the example I gave: I need to insert 50 new records, ID Primary is AUTO, The name would have to be NAME 1, NAME 2, NAME 3 so on and ID binding with other tables would be a fixed for example 2. 1, NAME 1, 2 1, NAME 2, 2
– Agência Ozweb
@Rray understood how it would be ?
– Agência Ozweb