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?
New to PHP with a problem
Moderator: General Moderators
-
fallenangel1979
- Forum Newbie
- Posts: 2
- Joined: Tue Aug 04, 2009 4:51 am
- jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
Re: New to PHP with a problem
$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.
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
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
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