New to PHP with a problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fallenangel1979
Forum Newbie
Posts: 2
Joined: Tue Aug 04, 2009 4:51 am

New to PHP with a problem

Post by fallenangel1979 »

I keep getting this error on a Component for Joomla

PHP Notice: Trying to get property of non-object in E:\ftproot\domain\folder\libraries\joomla\html\html\list.php on line 125

this is the code

$ordering = '<input type="hidden" name="ordering" value="'. $row->ordering .' />'. $text;

has anyone got any ideas as to what is wrong with this?
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: New to PHP with a problem

Post by jayshields »

$row is not an object, and you're trying to retrieve a property from it - like the error says.

Have you modified the code at all? Post the modified lines.
fallenangel1979
Forum Newbie
Posts: 2
Joined: Tue Aug 04, 2009 4:51 am

Re: New to PHP with a problem

Post by fallenangel1979 »

Hi thanks for the reply

i havent modified anything that was the code that came with the install, what woruld i need to change?

Edit - Solved the problem, just removed the "$srow" and sorted some of the quote marks.

Thanks
Post Reply