[Help] PHP Host connec to home MySQL menu

Shout-Out

User Tag List

Results 1 to 5 of 5
  1. #1
    Bloodsin's Avatar Member
    Reputation
    13
    Join Date
    Jun 2007
    Posts
    165
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] PHP Host connec to home MySQL

    How can i make like my account creation page connect to my PC MySQL, from a paid host?

    im using Servage

    Please will +rep

    [Help] PHP Host connec to home MySQL
  2. #2
    Bloodsin's Avatar Member
    Reputation
    13
    Join Date
    Jun 2007
    Posts
    165
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    5 views and no one can help?

  3. #3
    Tanax's Avatar Active Member
    Reputation
    53
    Join Date
    Jan 2007
    Posts
    239
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, you'd use the mysql_connect function.

    Code:
    $connection = mysql_connect(HOST, USER, PASS);
    mysql_select_db(DATABASE, $connection);
    ..where host is most likely the ip to your server, user is probably root, but could be different if you've changed it, and password is something you've set yourself. Database is the name of the database that you chose when you created the database.

    Hope this helps for you
    Last edited by Tanax; 03-19-2009 at 03:03 AM.
    Hm.

  4. #4
    UnknownHero's Avatar Member
    Reputation
    3
    Join Date
    Dec 2008
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should read php/mysql basic's

  5. #5
    Gamma's Avatar Member
    Reputation
    25
    Join Date
    Jan 2007
    Posts
    92
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if (isset($_POST['username']) && strlen($_POST['username']) > 0 &&
    isset($_POST['password']) && strlen($_POST['password']) > 0) {
    $db=mysql_connect("localhost", "USERNAME", "YOURPASSWORD") or die(mysql_error());
    mysql_select_db("jakobsen",$db) or die(mysql_error());
    $userarray = mysql_query ("SELECT * FROM SOMEPLACE WHERE username='$test'") or die(mysql_error());
    $row = mysql_fetch_array($userarray);
    mysql_close();
    if ($row[password] == $_POST['password']) {
    $_SESSION['user'] = $row[id];
    header("Location: http://anylocation");


    If you know a little about it then this might help

Similar Threads

  1. [Help][PHP/Mysql] LF Tutor
    By Thunderofnl in forum Programming
    Replies: 7
    Last Post: 03-27-2010, 08:45 PM
  2. host cant connect to mysql help plz
    By david12 in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 07-11-2009, 12:41 AM
  3. [Help Website] Paid host connect to my MySQL
    By Bloodsin in forum WoW EMU Questions & Requests
    Replies: 12
    Last Post: 02-19-2009, 05:58 PM
  4. [Help]Php mysql coding not working
    By Troys in forum Programming
    Replies: 19
    Last Post: 07-25-2008, 03:49 AM
  5. Free PHP hosting
    By Pragma in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 02-03-2008, 12:06 AM
All times are GMT -5. The time now is 05:44 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search