-
☆ A M B ☆
- 24,524 Posts
How to use the $modx->db->insert() API function? What kind of array does it want? After fighting with it for hours, I finally gave up and did a simple $modx->db->query() with the following:
$sql = "INSERT INTO modx_subscribers SET
intTransID = '".$transID."',
strCustomer = '".$customer."',
strEmail = '".$email."'";
A fourth field is not filled; it could be filled with the "DEFAULT" keyword.
I would really like to know how to get this to work using the API insert function.
-
☆ A M B ☆
- 24,524 Posts
That did the trick! Thank you! (should be added to the Wiki, the DBAPI page for the insert function is empty)