Ver Mensaje Individual
  #12 (permalink)  
Antiguo 28/04/2010, 10:11
maxwellxp
 
Fecha de Ingreso: abril-2010
Mensajes: 143
Antigüedad: 14 años
Puntos: 0
Respuesta: problema code PHP

por lo visto el problema era ese id inexistente...ahora le di un WHERE a la consulta de sumatoria...
Código HTML:
$query2 = mysql_query("SELECT * FROM numero WHERE id=1") or die(mysql_error());
while ($row = mysql_fetch_array($query2)) {
$sumador = $row['sumatoria'];
}
y paso esto:
Código HTML:
Notice: Undefined variable: sumador in C:\wamp\www\noticia\form.php  on line 15
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1