Okay, so I'm trying to send new rows of data to my table on MySQL. I'm pretty sure I have the syntax right but when I go to execute it, it gives me the "or die" message.
Can someone correct this bit of code if it's wrong please?
[php]
/* send the data to table */
$query = "INSERT INTO EWT (Bldg,Room,ST,C ageCD,PartNum,S erialNum,VndID, CompId,Model,RO S,Description,S canned,Section)
VALUES ('$bldg','$room ','$st','$cagec d','$partnum',' $serialnum','$v ndid','$compid' ,'$model','$ros ','$desc','$roo m','$scanned',' $section')";
$result = mysql_query($qu ery)
or die ("Couldn't execute query.");
[/php]
Can someone correct this bit of code if it's wrong please?
[php]
/* send the data to table */
$query = "INSERT INTO EWT (Bldg,Room,ST,C ageCD,PartNum,S erialNum,VndID, CompId,Model,RO S,Description,S canned,Section)
VALUES ('$bldg','$room ','$st','$cagec d','$partnum',' $serialnum','$v ndid','$compid' ,'$model','$ros ','$desc','$roo m','$scanned',' $section')";
$result = mysql_query($qu ery)
or die ("Couldn't execute query.");
[/php]
Comment