Hi all,
I've been using MODx for about a year, and got very good with it. I had no problems designing software services and doing some pretty complex things. That was on the old API it seems. With the 2.1 removal of many features, I'm left in the dark as to how MODx now operates.
MySQL queries?
It seems as though in order to simply read from the database, I have to create an XPDO map? Then I have to create an object, call it, and... I'm a bit confused here. The documentation I've been reading here:
http://rtfm.modx.com/display/revolution20/PHP+Coding+in+MODx+Revolution,+Pt.+I seems to be laughing at me. "Simple, Huh?".
Can some one please give me a tutorial on how I can create a custom table in the MySQL database, and draw records from it?
How do I...
$result = $modx->db->query("SELECT * FROM my_test WHERE id=3);
while($row = $modx->db->get_row_count($result))
{
echo $row['entry'];
}
Can some one simply explain this to me?
THANKS!