This topic is locked
[SOLVED]

 Email person after added

4/24/2015 9:00:09 AM
PHPRunner General questions
B
Blooper author

Hi there.
I'm struggling with this. I know this is very simple, but coming from a unix background with very little DBA experience I'm a little bit stuck.
TABLE NAME DBINFO

FIELD: REPORTERSEMAIL
I want phprunner to email the person who's email has been added to the database saying something like " Your email address has been added to the database, please go check"
I have the following code : http://postimg.org/image/53mxjxhvn

http://postimg.org/image/ul5z3kvfb/
But then I get the following error:
http://postimg.org/image/m6ppffykj
So basically when a user enters someone elses email address a note must be sent to that person informing him/her of this.
Basic I know, but I'm stuck for weeks now. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=23111&image=1&table=forumtopics' class='bbc_emoticon' alt=':(' />
Any assistance?

Sergey Kornilov admin 4/24/2015

If record is added to DBINFO table $values["REPORTERSEMAIL"] gives you access to entered email address. No need to execute any SQL queries, just use something like this:

$email=$values["REPORTERSEMAIL"];
B
Blooper author 4/28/2015

Thank you sir. This seemed to do the trick.. Seems simpler is sometimes better. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=77185&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />