Jump to content

PHP & Mysql


june_c21

Recommended Posts

$month = $_POST ['month'];

$gf = $_POST ['gf'];

$equipment = $_Get ['equipment'];

 

 

 

$query= "INSERT INTO report( month,gf,equipment) VALUES ('$month','1','$equipment') ";

$result = mysql_query($query,$dblink);

 

 

my problem is the month & gf are insert by users to report table but equipment is taken from different table and want to insert into report table. how to write the code?

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/74051-php-mysql/#findComment-373853
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.