Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/05/2009, 12:17
Avatar de abimaelrc
abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 15 años
Puntos: 1517
Respuesta: checkbox a mysql con PHP

Despues que hayas leido lo que te envio pateketrueke vas a entender esto mejor

$link=mysql_connect("localhost","root","20080035") ;
mysql_select_db(scme,$link);
if(!$link){ echo"<h2 align='center'>ERROR: Imposible establecer conexión</h2>";
exit; }


$RESULT = mysql_query("INSERT INTO productos VALUES ('$comp', $_POST["p1"] )",$link);