All pastes #244495 Raw Edit

Unnamed

public php v1 · immutable
#244495 ·published 2006-11-09 21:46 UTC
rendered paste body
$query_mboard= "INSERT INTO mboard VALUES ('','$mboard_desc','$mboard_serial')";          $query_pcset = "INSERT INTO pcset VALUES('','$pcname')";          $query_cpu   = "INSERT INTO cpu VALUES('','$cpu_desc','$cpu_serial')";  <--------------- Im going to insert some records into 3 tables.          $result = mysql_query($query_cpu);    <---- Id also like to query it if it went through coz im using a unique id in some of the rows             if($result==1)                      {                       echo "<img src=links/ok.png>Added to database";                        }                       else                         {                       echo "<img src=links/failed.png>Failed adding to Database";                      }