Ver Mensaje Individual
  #8 (permalink)  
Antiguo 23/05/2013, 11:57
nerezza
 
Fecha de Ingreso: abril-2008
Mensajes: 13
Antigüedad: 16 años
Puntos: 0
Respuesta: Problema Actualizar datos MySQL

Cita:
Iniciado por alex1084 Ver Mensaje
mira se nota que no tienes idea de lo que estas haciendo

Antes de esta linea

Código PHP:
Ver original
  1. $query = mysql_query($sql) or die("Cannot query the database.<br>" . mysql_error());

coloca esto

Código PHP:
Ver original
  1. echo $sql;

por lo que deberia quedarte asi ya modificado

Código PHP:
Ver original
  1. echo $sql;
  2. $query = mysql_query($sql) or die("Cannot query the database.<br>" . mysql_error());

Luego lo que te devuelva porque eso te debería mostrar algo mas en la pantalla nos lo muestras aqui ...
Que tal puse el codigo asi:

echo $sql = "$v
$t1 $q2a$q1a$a$q1a$bc
$t2 $q2b$q1b$b$q1b$cc
$t3 $q2c$q1c$c$q1c$dc
$t4 $q2d$q1d$d$q1d$ec
$t5 $q2e$q1e$e$q1e$fc
$t6 $q2f$q1f$f$q1f$gc
$t7 $q2g$q1g$g$q1g$hc
$t8 $q2h$q1h$h$q1h$ic
$t9 $q2i$q1i$i$q1i$jc
$t10 $qj$q1j$j$q1j$kc
$w
";
$query = mysql_query($sql) or die("Cannot query the database.<br>" . mysql_error());

$variable = "../$return.php";
include '../resend.php';

Y me salio esto:

INSERT INTO $which SET ='http://www.yourdomain.com/', ='/home/user/public_html/', ='localhost', ='Username', ='6f1sdfsfsd86fd8sfv78f681zf6d6f1sdfsfsd86fd8sfv78 f681zf6d6f1sdfsfsd86fd8sfv78f681zf6d6f1sdfsfsd86fd 8sfv78f681zf6d6f1sdfsfsd86fd8sfv78f681zf6d6f1sdfsf sd86fd8sfv78f681zf6d6f1sdfsfsd86fd8sfv78f681zf6d', ='http://www.yourdomain.com', ='http://www.yourdomain.com', ='NO' Cannot query the database.
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 '='http://www.yourdomain.com/', ='/home/user/public_html/', ='localhost', ='Us' at line 2