Jump to content

How can I combine these queries?


advancedfuture

Recommended Posts

Happy Holidays Fellow PHPFreaks!

 

I wanted to know how can I combine these two queries, if possible at all.

 

$query = "UPDATE users SET active='n' WHERE username='$payer_email'";
mysql_query($query);

$query = "DELETE FROM services WHERE username='$payer_email'";
mysql_query($query);

Link to comment
https://forums.phpfreaks.com/topic/186355-how-can-i-combine-these-queries/
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.