Hi to everyone, I need to make a multiple insertion in MySQL and I wrote the SQL string as follows:
INSERT INTO tableX (field1, field2, field3)
SELECT fieldA, fieldB, fieldC FROM tableY WHERE fieldA = 'xyz'
but myproblem is that one of the fields should have always the same value, obtained from a $GET, something like:
INSERT INTO tabellaX (field1, field2, field3)
VALUES ($GET['value'], SELECT fieldB, fieldC FROM tableY WHERE fieldA= 'xyz')
obviously can't be done this way, but...how then?!
Thanks in advance!