Re: Problems when I insert a record into a mysql table...

From: Date: Thu, 17 Oct 2002 23:09:05 +0000
Subject: Re: Problems when I insert a record into a mysql table...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-120426@lists.php.net to get a copy of this message
Do a : print mysql_error(); Right after the result and then tell us what it says... Another good troubleshooting tip is to do this instead: print $sql."<br>"; print mysql_error(); Then we can see what the end result of your $sql statement actually IS, and then see what error its generating. Jorge Albores wrote:
Hi all, I have some troubles when I try to insert a new record into a mysql table I'm learning PHP, I live in Mexico. This is the fragment of the program... $altas="INSERT INTO ordenes (orden,fecha,hora,Cliente,Contacto,domicilio,telefono) VALUES ($orden,$fecha,$hora,$Cliente,$Contacto,$domicilio,$telefono)"; $resultado = mysql_query($altas); Please someone help me....


« previous php.general (#120426) next »