We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 51066
    • 1 Posts
    Hi,
    I was wondering if anyone knew where is a free simplified explanation of xPDO, and how to use it. Currently, I have tables that I want to create dynamically in the code, but don't know how to do it exactly. One example query that I would need to convert to xPDO, I think, would be this:
     $vn_contacts_table =
    	"CREATE TABLE IF NOT EXISTS objects (
    	ID int(20) UNSIGNED NOT NULL AUTO_INCREMENT,
    	username varchar(20) NOT NULL,
    	invitationAccepted boolean NOT NULL,
    	dateAdded datetime NOT NULL,
    	PRIMARY KEY (ID)
    	)";

    If this is right, what would this look like in xPDO?
    Thanks.
      • 48586
      • 78 Posts
      I didn't have to make new tables on the fly, but this tutorial was a major help to me in creating custom database tables to use.

      http://bobsguides.com/custom-db-tables.html