Jump to content

Multiple queries PHP/MYSQL


livewirerules

Recommended Posts

how do i insert a value for two different tables in php using mysql?

 

The following code inserts the value to the log table

$sql = "INSERT INTO `log` (`tip`,`win`) VALUES('".$tip."','1')";
$res = mysql_query($sql) or die(mysql_error());

 

So i need two write a query to insert the values in to 2 tables log and templog

 

How do i do it? Any help will be appreciated  :)

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/122004-multiple-queries-phpmysql/
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.