Page 1 of 1

PostPosted: Sun Jun 03, 2007 3:12 pm
by rusnei
Hi,

I'm getting this error:

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/albshke/public_html/BIBLIOTEKA/libraria/tables/books/books.php on line 61

Code in /.../tables/books/books.php:

//Iterate through all the rows
$record = new Dataface_Record('books', array());
$record->setValues($defaultValues);
if ( !$row->getCell(0)->getValue() ) continue;
echo "Date: ".$row->getCell(4)->getValue();
$record->setValues(
array(
'title'=>$row->getCell(0)->getValue(),
'author_or_editor'=>$row->getCell(1)->getValue().', '.$row->getCell(2)->getValue(),
'publisher'=>$row->getCell(3)->getValue(),
'copyright_year'=>$row->getCell(4)->getValue(),

'media'=>explode(',',$row->getCell(7)->getValue()),
'reference_no'=>$row->getCell(8)->getValue(),
'notes'=>$row->getCell(9)->getValue(),
'audience'=>$audience
)
);

Line 61:

if ( !$row->getCell(0)->getValue() ) continue;

I'm using:

Apache version 1.3.37 (Unix)
PERL version 5.8.7
PHP version 4.4.4
MySQL version 4.1.21-standard


I dont know why I'm getting this error, and how to fix it. Anyone who can halp me?

PostPosted: Sun Jun 03, 2007 4:58 pm
by shannah

Hi Neim,

Thanks for trying Library DB.Ê This version unfortunately has problems with PHP 4 (requires PHP 5).Ê The next version will be compatible with PHP 4.Ê Until then, try the workaround described at http://framework.weblite.ca/forum/librarydb/298740491
Best regards
STeve