I'm getting this "unexpected T_OBJECT_OPERATOR" error - why?

A place to discuss and receive support for the Library DB application.

Postby rusnei » Sun Jun 03, 2007 3:12 pm

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?
rusnei
 
Posts: 1
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Sun Jun 03, 2007 4:58 pm

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
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Library DB Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved