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

por fa alguien me puede ayudar con esto........
miren el problema k tengo es este

tengo esta función la cual tiene un atributo $fecha .
Código PHP:
ipublic 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);

        return 
$this->resultado;

    } 
y la llamo asi en mi form
Código PHP:
include_once 'clases/CRUD_Detalles.php';
$objCrud = new CRUD_Detalles();
$res $objCrud->fecha($fecha); 
y para k se muestre lo que necesito en mi caja de texto le paso en el value de mi caja de texto un echo del atributo $fecha el cual llame arriba pero no me sirve........
alguien me podria ayudar con eso porfa.........