Untraceable MySQL insert error

wxdqz

New Member
The strange fact about this is that it worked
one time, but then nothing.
I checked the syntax many times.
When I try to insert I get the last die error "Couldnt execute query"

Once I tried doing two insert, and the first one worked while the second gave error, but when I tried it again nothing.
I can select from this table without problem.

Anybody saw this before?
Thank you.

----------------------
$dbhost = "localhost";
$dbuser = "sitio2";
$dbpass = "flo333";
$dbname = "sitio2";

$db = mysql_connect($dbhost,$dbuser,$dbpass) or die ("no connection");
mysql_select_db("$dbname",$db) or die("db not selected");

mysql_query("INSERT INTO antecedentes (linea, nombre, apellido,licencia, co1, co2, co3, co4, co5, co6, co7, co8, co9, co10, co11, co12, co13) VALUES ('$linea', '$nombre', '$apellido', '$licencia', '$co1', '$co2', '$co3', '$co4', '$co5', '$co6', '$co7', '$co8', '$co9', '$co10', '$co11', '$co12', '$co13')")or die("Couldn't execute query.");
 
Back
Top