PDA

Click to See Complete Forum and Search --> : Is it possible to change PHP data with Mysql data?


Lukeidiot
Sep 9th, 2008, 10:24 PM
Okay heres the setup.

I have 'email.php' that sends data via POST to: $recipient = 'email@gmail.com';

I want to know if it's possible to get "email.php" to send to a certain email, based on customer #, and email - all of which is stored in a mysql database.

I understand how to get the data into the mysql database, but what i do not understand is how to code the PHP, that reads the data from the mysql so it knows where to send the email.

For example I want a user to login and from the login panel, he can change the email address that the php code sends. -- Is this possible?

dclamp
Sep 9th, 2008, 11:51 PM
There are lots of examples on VBF of how to use MySQL and PHP.

There is a tutorial link in my signature that shows the basics of MySQL and how to use them with PHP

kzatu
Sep 10th, 2008, 09:11 AM
So is your question about how to read mySQL in PHP or how to process the data once you've read it?

I_Love_My_Vans
Sep 11th, 2008, 07:35 AM
If you go here -> http://uk2.php.net/manual/en/function.mysql-fetch-assoc.php

You will find a good example on how to connect to a database, table, search for a records and then return the value using $row['email'].

ILMV