Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/09/2006, 09:00
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Puedes hacer un include desde tu funcion asi importas las variables y ya las tienes listas en tu codigo :)
Código PHP:
function check_user(){
include( 
"ruta/a/tu/archivo.php" );
$this->objConn=new conectarMySQL("server","pepito","1234","bd1");
$this->objConn->conectar();
$query="select idUser from tb_user where";
$query=$query." usr ='".$this->nombre."' and pwd= '".$this->password."'";
$this->objConn->consultar($query);