360haven works best with JavaScript enabled
PhpInsertInto
Loading
Register
Results 1 to 1 of 1

Thread: PhpInsertInto

  1. #1
    Developer
    Mocha is offline
    Join Date : Dec 2010
    Location : Southampton Pennslyvania
    Posts : 85
    Array

    PhpInsertInto

    Just something quick I made to share with you guys.


    <html>
    <form name="form1" method="post" action="">
    <p>
    <label for="textfield">360Haven Username:</label>
    <input type="text" name="username" id="textfield">
    </p>
    <p>
    <label for="textfield2">Gamer-Tag:</label>
    <input type="text" name="gamertag" id="textfield2">
    </p>
    <p>
    <label for="textfield3">First Name:</label>
    <input type="text" name="name" id="textfield3">
    </p>
    <p>
    <label for="textfield4">Aim:</label>
    <input type="text" name="aim" id="textfield4">
    </p>
    <p>
    <label for="textfield5">Msn:</label>
    <input type="text" name="msn" id="textfield5">
    </p>
    <p>
    <input type="submit" name="submit" id="button" value="Submit Contact">
    </p>

    </form>

    <?php
    /* MySQL Login Structure*/
    $Host = "";
    $DB_Name = "";
    $DB_Username = "";
    $DB_Password = "";



    /*MySQL Table Info/Structure*/
    $DB_Table_Name = "";
    $Column_0 = "";
    $Column_1 = "";
    $Column_2 = "";
    $Column_3 = "";
    $Column_4 = "";
    $Column_5 = "";

    /* Connects to the MySQL Database*/
    $Connection = mysql_connect($Host, $DB_Username, $DB_Password) or die("Contact Manager could not establish a connection to the MySQL Database");
    mysql_select_db($DB_Name,$Connection) or die ("Contact Manager could not select the MySQL Database");

    /*Performs MySQL Query*/
    $Query = mysql_query("INSERT INTO $DB_Table_Name") or die("Contact Manager could not perform the MySQL query");
    if(issey($_POST['submit']))
    {
    $Query;
    }
    mysql_close($Connection);
    ?>
    </html>
    Last edited by Sephiroth; 02-12-2015 at 02:45 AM.

 

 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.
     

About 360haven

    360haven is an Forum Devoted To Game modding Fans from all over the world.

    An Awesome Community of Xbox 360 Gamers, Modders and Developers who Create & Share Tutorials, Applications, Gfx, Trainers and Gamesaves.

    A haven for the l33t.
    A scarce paradise for modders.

Like this page

Google+