Hi!
When I had MODx evolution, I used following code to get information from the database:
<?php
$haku = mysql_query( "SELECT id, pagetitle, parent, description, content FROM `revo_site_content` WHERE `parent`=3 ORDER BY `id` DESC LIMIT 2");
while ( $tiedot = mysql_fetch_array ( $haku ) )
{
}
?>
When I installed the MODx Revolution, this code doesn’t work anymore. I read that with the Revolution I have to use some ORM or xPDO thing but I have no idea how to use them... And haven’t found anythind easy enough for me. So could you help me with that? How I can get those information from my MySQL database with the Revolution?
Thank you!