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.........