Jump to content

mysql wrong error?


flemingmike

Recommended Posts

hello,  if im inserting to database from form, im getting an error, but it is correctly entering the data.  any ideas?

 

<?php
include 'config.php';


$query = mysql_query("INSERT INTO jobNO (
`ID` ,
`jobNO` ,
`companyID` 
)
VALUES (
NULL, 
'$_POST[jobNO]', 
'$_POST[companyID]'
)");

mysql_query($query) or die('Error, insert query failed');


echo "1 record added";




?>

Link to comment
https://forums.phpfreaks.com/topic/213784-mysql-wrong-error/
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.