Help with Curl to send emails
Hi Ray - this is something you helped out with before, but am just trying to replicate something similar in a different scenario. Probably a slightly more straightforward scenarios, as its based on a single insert rather than multiple insert.
Basically have a page where a user can add a news story into a table (product_updates), which should trigger an email to users that are connected to the lodge that the news item is about.
So the product_updates table stores the LodgeID, which should also go into the array, and the SQL uses that to return the users that are connected to that lodge via the table product_likes.
I think it must be mostly there, but I have missed something somewhere, as it doesn't seen to be sending emails. If you could have a look at the attached files, that would be much appreciated. Also would be happy to take this to a premium ticket as I know its a bit beyond the WA functionality.
The files attached are the page for adding the news item (index111.php) as well as the associated files.
EDIT: Hi Ray - I think its to do with the fact that the original was based on a multiple insert, whereas this one is just a single insert. But I'm nit sure what the syntax should be in the code for the CURL stuff. It may not even need the array if its a single insert, but just have the SQL part?