Results 1 to 4 of 4

Thread: Is it possible to change PHP data with Mysql data?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2007
    Posts
    95

    Is it possible to change PHP data with Mysql data?

    Okay heres the setup.

    I have 'email.php' that sends data via POST to:
    PHP Code:
    $recipient '[email protected]'
    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?

  2. #2
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Is it possible to change PHP data with Mysql data?

    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
    My usual boring signature: Something

  3. #3
    Addicted Member kzatu's Avatar
    Join Date
    Aug 2003
    Location
    Nevada
    Posts
    148

    Re: Is it possible to change PHP data with Mysql data?

    So is your question about how to read mySQL in PHP or how to process the data once you've read it?
    Changes are not permanent, but change is. {Neil Peart}

  4. #4
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Re: Is it possible to change PHP data with Mysql data?

    If you go here -> http://uk2.php.net/manual/en/functio...etch-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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width