Ver Mensaje Individual
  #20 (permalink)  
Antiguo 22/09/2011, 12:35
felopez0
 
Fecha de Ingreso: agosto-2011
Mensajes: 80
Antigüedad: 12 años, 8 meses
Puntos: 0
Pregunta Respuesta: problema con atributo de funcion php

mira cambie la funcion y quedo asi
Código PHP:
 public function fecha($fecha) {

        
$objmysql = new mysql();

        
$this->conexion $objmysql->conectarBD();
        
$this->fecha $fecha;

        
$this->sql "select fecha from cabecera where fecha = '$this->fecha'";

        
$this->resultado mysql_query($this->sql$this->conexion);
        while (
$row mysql_fetch_array($this->resultado)) {

            return 
$row['fecha'];