Devils666 Posted November 29, 2008 Report Share Posted November 29, 2008 (edited) Vai ir iespējams apvienot divas INSERT komandas viena koda? Edited December 1, 2008 by Devils666 Link to comment Share on other sites More sharing options...
Ghenis Posted November 29, 2008 Report Share Posted November 29, 2008 Nē. Bet ievietotās rindas id tu vari uzzināt ar mysql_insert_id() Link to comment Share on other sites More sharing options...
bubu Posted November 29, 2008 Report Share Posted November 29, 2008 Lai iekš $q ievietotu divās tabulās, piemēram iekš 'lietotaji' un 'vestule' ? Visai loģiski, ka izpildot divas INSERT komandas: mysql_query("INSERT INTO lietotaji VALUES ('$niks', '$pass', $epasts))"; mysql_query("INSERT INTO vestule VALUES (vēstuļu dati...))"; Link to comment Share on other sites More sharing options...
Recommended Posts