Ver Mensaje Individual
  #4 (permalink)  
Antiguo 21/12/2005, 19:05
Avatar de pereztroff
pereztroff
 
Fecha de Ingreso: junio-2002
Ubicación: En la Internet.
Mensajes: 4.068
Antigüedad: 21 años, 9 meses
Puntos: 5
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);

gracias