We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22303 MODX Staff
    • 10,725 Posts
    Quote from: cyclissmo at Oct 01, 2010, 01:28 AM

    You do not have to build xPDO classes to abstract your database and tables, you can just use PHP mysql functions.
    Actually my previous point was, you can just use PHP PDO functions; otherwise you have to create another database connection for the mysql extension functions (or mysqli for that matter). If you have to create an external connection anyway, then this point is moot and go ahead and use it if you want, but if you do want to use the existing connection, use the PDO functions that are available directly from the xPDO class and the derivative modX class. See http://php.net/pdo for more information on PDO.