Ver Mensaje Individual
  #7 (permalink)  
Antiguo 21/12/2005, 19:27
Avatar de kalolo
kalolo
 
Fecha de Ingreso: abril-2005
Mensajes: 65
Antigüedad: 19 años
Puntos: 0
Cita:
Iniciado por pereztroff
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

me da un error al clicar en el link con esa variable. ¿que ocurre? en creapdf.php tengo lo siguiente:
Código PHP:
<?
require('fpdf.php');
include(
'../inc/config.php');
$variable=$_GET['id'];  
$pegar "SELECT * FROM propiedades WHERE $vari='$variable'";
$cad mysql_db_query($base_dato,$pegar) or die (mysql_error());
$array mysql_fetch_array($cad);
Código PHP:
$pegar "SELECT * FROM propiedades WHERE ".$vari."='".$variable."'"