How to create SQL varaiable database?

Discussion in 'Databases' started by Rachidspot, Apr 18, 2016.

  1. #1
    Hi all !

    Please I have a php mailer and I want to set a sql variable like [ip] to get ip from used server, how can I do it??

    and please I want to create an input in wich i can put server, then when I click on get IP, all ip from the server will appear automaticly, How can I execute this using php code

    Thank you
     
    Rachidspot, Apr 18, 2016 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,806
    Likes Received:
    4,534
    Best Answers:
    123
    Trophy Points:
    665
    #2
    Read http://php.net/manual/en/reserved.variables.server.php for $_SERVER['REMOTE_ADDR'] to get the IP
    and start working through some simple tutorials to get a feel for how to save to the database and retrieve from it.

    Are you using an existing mailer? or content management system?
     
    sarahk, Apr 18, 2016 IP