hola al ejecutar mi codigo aparece 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 '1' at line 1 a que se debe mi codgio esta asi
mysql_select_db(tst, $conexion);
$query_Paises = "SELECT * FROM paises";
$Paises = mysql_query($query_Paises, $conexion) or die(mysql_error());
$row_Paises = mysql_fetch_assoc($Paises);
$totalRows_Paises = mysql_num_rows($Paises);
$colname_ciudad = "-1";
if (isset($_POST['id_pais'])) {
$colname_ciudad = (get_magic_quotes_gpc()) ? $_POST['id_pais'] : addslashes($_POST['id_pais']);
}
mysql_select_db($database_Combobox, $conexion);
$query_ciudad = sprintf("SELECT id_ciudad, ciudad FROM ciudades WHERE id_pais = %s", $colname_ciudad);
$ciudad = mysql_query($query_ciudad, $conexion) or die(mysql_error());
$row_ciudad = mysql_fetch_assoc($ciudad);