Jump to content

INSERT x2


Pandareen

Recommended Posts

Hello!Is this correct?

 

$sql="INSERT INTO pacienti (nume, prenume, cnp, varsta, sex, casa_asigurari, oras, strada, numar, judet, data_inregistrarii)
VALUES
('$_POST[nume]','$_POST[prenume]','$_POST[CNP]','$_POST[varsta]','$_POST[sex]','$_POST[casa]','$_POST[oras]','$_POST[strada]','$_POST[nr]','$_POST[judet]','$_POST[internare]')";

$sql="INSERT INTO diagnostic (nume)
VALUES
('$_POST[diagnostic]')";

 

and i mean..if i can do 2 insert in 2 different tables...or how can i do this?

Link to comment
https://forums.phpfreaks.com/topic/254070-insert-x2/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.