Ver Mensaje Individual
  #11 (permalink)  
Antiguo 15/06/2004, 06:35
Avatar de benti
benti
 
Fecha de Ingreso: octubre-2001
Ubicación: Benidorm
Mensajes: 413
Antigüedad: 22 años, 6 meses
Puntos: 0
Bien he añadido esto enla pagina:
Código PHP:
if ($_GET['sex']==''){
    
$sex="Chica";    

y en la fuction he cambiado a:
Código PHP:
function tiene($pro,$sex){
$res mysql_query ("SELECT id, provincia1, genero FROM dr_anuncio WHERE act='1', provincia1='$pro', genero='$sex' order by id DESC") or die (mysql_Error()); 
Paro ahora me da este error, ya no se ke hacer :
You have an error in your SQL syntax near ' provincia1='1', genero='Chico' order by id DESC' at line 1
__________________
Seguro que ahora me sale mejor!