Ver Mensaje Individual
  #8 (permalink)  
Antiguo 13/02/2011, 21:39
celineadiction
 
Fecha de Ingreso: octubre-2010
Mensajes: 93
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL resul

esta es la funcion usada de javascript:

Código HTML:
function addId() {
				var id=document.getElementById('procesos').options[document.getElementById('procesos').selectedIndex].value;
				window.location.href = "admin.php?proc="+id;
	}
Código PHP:
<?php
$proceso
=$_GET["proc"];
                if(
$proceso!="") {
                    include(
"conexion.php");
                    
$sql="SELECT * FROM documentos where Proceso=$proceso";
                    echo 
$sql;
                    
$resultado=mysql_query($sql) or die (mysql_error());
                    
$rec=mysql_fetch_assoc($resultado);
                    
$men=$rec["Documento"]; 
                }
        
?>