php - Delete data from two tables with one query? -


this question has answer here:

i want delete data's 2 tables:

something this:

$rez = mysql_query("delete slike slike_id='$del' or delete foto foto_id='$del'"); 

how can that? thanks.

you should first search asking ..

delete  slike  inner join foto on  slike.slike_id= foto.foto_id slike.slike_id='$del' 

Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -