Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/11/2013, 14:12
robertsergio
 
Fecha de Ingreso: noviembre-2013
Mensajes: 2
Antigüedad: 10 años, 5 meses
Puntos: 1
Error Notice: Object of class phpselectform could not be converted to int in

Buenas tardes Amigo,
Tengo un error en un sistema que estaba funcionando pero fue actualizado las versiones de apache,mysql y php.
El error es :
Strict standards: Declaration of phpdbform::draw() should be compatible with phpform::draw($cell = false) in D:\Server\www\caribe\nueva\phpdbform\phpdbform_db. php on line 15

Este es el formulario que quiero ejecutar

<?php
setcookie("Language","portuguese" ); // Set languange

$Language = "portuguese";
include_once("functions.php");
include_once("phpdbform/phpdbform_mysql.php");
include_once("phpdbform/phpdbform_db.php");
include_once("server_info.php");

$db = new phpdbform_db( DATABASE, SERVER, LOGIN, PASSWORD );
$db->connect();
$form = new phpdbform( $db,"empresas","id","codigo,nombreusual","codigo") ;

$form->add_textbox( "codigo", "Codigo :", 04, 04 );
$form->add_textbox( "razonsocial", "Razon Social:", 60 );
$form->add_textbox( "nombreusual", "Nombre Usual:", 15 );
$form->add_textbox( "direccion", "Direccion :", 30 );

$form->process();

print_header("Inventario de Empresas");
$form->draw(true);
print_footer();


y esta es la funcion:

function draw($cell=false)
{
$this->draw_header();
reset($this->fields);
while( $field = each($this->fields) )
{
print "<tr>";
$field[1]->draw();
print "</tr>\n";
}
if($cell) print "<tr><td>";
$this->draw_submit( "Aceptar" );
if($cell) print "</td></tr>";

Luego mas abajo esta el error:

Notice: Object of class phpselectform could not be converted to int in D:\Server\www\caribe\nueva\phpdbform\phpdbform_db. php on line 226


Que me lleva a estas lineas.

function draw()
{
if( $this->selform != 0 ) $this->selform->draw();
phpform::draw();
}


Que esta fallando, el formulario abre a medias.

Agradeceria toda la ayuda que me puedan dar
Gracias a todos.