08/11/2013, 15:00
|
| | Fecha de Ingreso: noviembre-2013
Mensajes: 2
Antigüedad: 11 años Puntos: 1 | |
Respuesta: Error Notice: Object of class phpselectform could not be converted to int Bueno ya elimine el primer error, quedo este :
Notice: Object of class phpselectform could not be converted to int in D:\Server\www\caribe\nueva\phpdbform\phpdbform_db. php on line 226
Notice: Object of class phpselectform could not be converted to int in D:\Server\www\caribe\nueva\phpdbform\phpdbform_db. php on line 234
Notice: Object of class phpselectform could not be converted to int in D:\Server\www\caribe\nueva\phpdbform\phpdbform_db. php on line 240
Notice: Object of class phpselectform could not be converted to int in D:\Server\www\caribe\nueva\phpdbform\phpdbform_db. php on line 270
estas son las lineas de codigo:
function draw($cell=false)
{ if( $this->selform != 0 ) $this->selform->draw();
phpform::draw();
}
function process()
{
global $HTTP_SESSION_VARS, $HTTP_POST_VARS; if( $this->selform != 0 ) $selformprocessed = $this->selform->process();
if( !phpform::process() )
{
// if this form didn´t processed, see if select processed
// first check if there is a select form
$selected = false; if( $this->selform != 0 )
{
// See if any key was selected by selform
$selected = $selformprocessed;
if( $selected && !$this->selform->value ) $selected = false;
if( $selected ) $this->keyvalue = $this->selform->value;
}
// If there was no selform, or selform selected nothing
// try to see if the user has set keyvalue
// how user can set keyvalue? using $form->keyvalue = "xxx,xxx"
if( !$selected && count($this->keyvalue) > 0 ) $selected = true;
// Something filled keyvalue, try loading the values into phpdbform
if( $selected )
{
if( $this->select_data() )
{
// found data!
$this->mode = "update";
} else {
// some error occurred, clear phpdbform and set insertmode
$this->clear();
$this->mode = "insert";
}
// nothing was selected, go to insertmode
} else $this->mode = "insert";
// store the key and mode in the session
$HTTP_SESSION_VARS[$this->table."_sess"]["key"] = $this->keyvalue;
// put form in update mode
$HTTP_SESSION_VARS[$this->table."_sess"]["mode"] = $this->mode;
// if there is a select form, fill it with data if( $this->selform != 0 ) $this->selform->select_data();
return;
}
Las lineas de error estan en negrito.
Que mas tengo que cambiar en el codigo para funcionar?
Agradeciendo ya la ayuda. |