add email notify code

I’m totally new to php and mysql but I’m trying to learn. with that out of the way this is wat im trying todo-
I have a script setup so when users fill out an application i have it sent to a database to be retrieved later. there is an error code used in case they didn’t fill something out correctly but id like to add an email notify to the code so that if the script passes the checking and sends to the database it will also send an email to an email address(s) that states that a clan application has been submitted and to click here to navigate to the list of application requests… it sounds like an easy code but i cant seem to find out where to put it within the code… i don’t need it to send email if the app failed and didn’t go to database.
so any help would be awesome…

It is hard to give advice not seeing the code, but if you already have database part functioning correctly, you just need to find code where you insert new record to a database table, and add email notification code right after that database code. If you are using MySQL database, I guess you need to search for this instance in your code:

mysql_query("INSERT INTO 

Awesome… I found it. Thankyou. Here’s another thing id like todo. On another page iadmins have the ability to change there rank, id like todo almost the same thing but have it email the member of there rank change and automaticly send a email that includes there new rank and a description of there rank as retrieved by the dadabase. This seems a bit more complicated and I hvnt figureded out how to show the rank and description in an email that is pulled from my dadabase. I can send code if needed. again any help would be great… thx

Sponsor our Newsletter | Privacy Policy | Terms of Service