How to get a Mysql database checker? menu

User Tag List

Results 1 to 3 of 3
  1. #1
    warsheep's Avatar Contributor
    Reputation
    184
    Join Date
    Sep 2006
    Posts
    1,216
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to get a Mysql database checker?

    I need a PHP script that will check if the database information is correct, and if not, print out an error...

    So far, this is what I got
    Code:
     mysql_ connect("<?=$ config["database"];?","<?=$ config["user"];?","<?=$ config["pass"];?") or die ("Error!");
    And I have defined it all... Yet, I am sure where to go from here, like what else do I need around it, other then the PHP tags? ><

    Anyone atleast got a hint?
    Edit:
    I kinda rushed this thread as I wanted to be first.. Hmpf, damn you TTT.
    Oh well, I am pretty newb at MYSQL syntaxes and such, and even more with PHP, thats why I'm pretty bad at this.
    I also had to add some spaces, because I aint able to edit the post otherwise... Hmpf.
    Last edited by warsheep; 03-09-2008 at 10:54 AM.
    FOR A MOMENT, NOTHING HAPPENED. THEN, AFTER A SECOND OR SO, NOTHING CONTINUED TO HAPPEN.

    How to get a Mysql database checker?
  2. #2
    tttommeke's Avatar Banned
    Reputation
    1
    Join Date
    Jul 2007
    Posts
    613
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I already explained it you !

    Code:
    <?php
    
    mysql_connect('localhost',$ config["user"],$ config["pass"]) or die ("Error !");
    mysql_select_db($ config["database"]) or die ("Another error!");
    
    Print "Success ! No errors !";
    ?>

  3. #3
    warsheep's Avatar Contributor
    Reputation
    184
    Join Date
    Sep 2006
    Posts
    1,216
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah, ok.. Its allot easier now to understand it when its in code tags, and not the SB..

    thanks allot, +rep.
    FOR A MOMENT, NOTHING HAPPENED. THEN, AFTER A SECOND OR SO, NOTHING CONTINUED TO HAPPEN.

Similar Threads

  1. How do i make MySQL access the database with the SELECT and INSERT commands.
    By Tidan12 in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 09-10-2013, 04:54 PM
  2. Replies: 17
    Last Post: 06-04-2009, 03:53 PM
  3. how to get mysql thing to work
    By Silentnvd in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 10-19-2008, 11:43 PM
  4. How to get into your friends database
    By lilvic12 in forum WoW EMU Guides & Tutorials
    Replies: 13
    Last Post: 07-12-2008, 09:35 AM
  5. How to make make your MySQL Database accessable by others!
    By metehan in forum WoW EMU Guides & Tutorials
    Replies: 4
    Last Post: 05-29-2008, 03:31 PM
All times are GMT -5. The time now is 11:45 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search