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