Mysql Database Help - need help with MySQL databases...skip to page three

Pages: 1, 2, 3, 4, 5
free web hosting
Open Discussion > General > Hosted Members Area

Mysql Database Help - need help with MySQL databases...skip to page three

Dayzed
Whats an absolute link?



Okay, okay, I lied, not the last question....

Reply

snlildude87
Absolute is where you call your sql.sql file using the full path.
CODE

<?php
include("http://blah.trap17.com/sql.sql");
?>

^ That's an example of an absolute call in PHP

CODE

<?php
include("sql.sql");
?>

^ That's relative, and it will work ONLY if the calling file is in the same directory or folder as the sql.sql file.

Reply

Dayzed
I think I get what your saying, not sure though.


I tried moving it around, all over the place, and an error message comes up. Go to here to figure out what I'm talking about:

www.gigapass.trap17.com

I dont know what is wrong. I triple checked everything, and it seems to be correct....

Reply

snlildude87
Well, I have 0 experience with MySQL because I find it to be unreliable - PHP never goes down.

What's the content of you config.inc.php file? Post the entire code (if it's not large) here

Reply

Dayzed
CODE
<?php
$_CONFIG['mbname']    = '';    // Giga Pass
$_CONFIG['mbsurl']     = '';    // [url=http://gigapass.trap17.com]http://gigapass.trap17.com[/url]
$_CONFIG['dbhost']    = '';    // trap17.com
$_CONFIG['homepage']   = '';    // [url=http://gigapass.trap17.com]http://gigapass.trap17.com[/url]
$_CONFIG['legal_tags'] = 'b|i'; // HTML tags allowed in messages. You can only add tags that have no attributes.
$_MYSQL['dbhost']      = '';    // localhost
$_MYSQL['dbuser']      = '';    // dayzed_ejashby
$_MYSQL['dbpass']      = '';    // (I put the password for dayzed_ejashby here)
$_MYSQL['dbname']      = '';    // dayzed_SQLdatabase

//
// User level definitions
//

define('Inactive', 0);
define('Warned', 1);
define('Mutie', 12);
define('Rookie', 15);
define('Veteran', 18);
define('Idol', 30);
define('Moderator', 52);
define('Administrator', 60);

//
// Include money (Coins) configuration. Go edit that file.
//

require 'mny_config.php';

$db = @mysql_connect($_MYSQL['localhost'], $_MYSQL['dayzed_ejashby'], $_MYSQL['(password for dayzed_ejashby)'])
or die("<b>Error:</b> Failed to connect to database host: {$_MYSQL['localhost']}<br />
       <b>Possible Solution:</b> Check if the database host name, user name and password are defined
       correctly in the config.inc.php file.<br />
       <b>MySQL says:</b> ". mysql_error());

@mysql_select_db($_MYSQL['dayzed_sqldatabase'], $db)
or die("<b>Error:</b> Failed to select database: {$_MYSQL['dayzed_sqldatabase']}<br />
       <b>Possible Solution:</b> Check if the database is set up and the database name
       defined in the config.inc.php file is correct.<br />
       <b>MySQL says:</b> ". mysql_error());
?>

Where my password is supposed to be, I have my password, not the text.

Notice from snlildude87:
Placing your code in [code][/code] BBCodes makes it so much easier to read

 

 

 


Reply

snlildude87
Hmm, did you put mny_config.php (as well as every other files) in your public_html folder? If you did, then I don't know where to go from here because I have not worked with MySQL... sad.gif

Reply

Dayzed
Yes I did....


*cries*


So you can't help me anymore? Do you know anyone who can?

Reply

snlildude87
I can help you one last time: by changing the thread title to make it look more appealing.

Reply

Dayzed
I cant edit it, and if I can I dont know how.

Reply

Dayzed
Oh, thanks. I thought you ment me....

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Pages: 1, 2, 3, 4, 5
Recent Queries:-
  1. mysql backup batabase - 439.92 hr back. (1)
Similar Topics

Keywords : mysql, database, mysql, databases, skip, page

  1. I Can't Find The Password Reset Page... [resolved]
    (5)
  2. Cant Log Into Cpanel [resolved]
    Page cant be displayed (11)
    Help I can not log into cpanel. I just upgraded to IE-7 and now I can not get into my Cpanel. what
    the page is telling me is this. QUOTE Internet Explorer cannot display the webpage Most
    likely causes: You are not connected to the Internet. The website is encountering problems. There
    might be a typing error in the address. What you can try: Diagnose Connection Problems
    More information This problem can be caused by a variety of issues, including: Internet
    connectivity has been lost. The website is temporarily unavailable. The D....
  3. My Ro Page
    (4)
    I designed my own website and code it xD this website is for my server JevilRO www.jevilro.com....
  4. Plot Page Help Invisionfree
    (0)
    I've made a few boards with invisionfree before, but I have no idea of what a plot page is or
    how to make one. can someone help me out?....
  5. Mysql Hacks
    (1)
    There are MySQL hacks out there, They can travel from your website to your computers. One of these
    are the MySQL injectors. The injection drops your tables and shuts down the program permanently. Be
    careful of these hacks, as they can destroy your MySQL related websites, programs, etc.....
  6. Database Normalization
    (0)
    For those of you... who really reall Ok... I am sharing to trap17 an easy to use image file to
    brush up your understanding of database normalization. Everytime I have to understand the concepts,
    I have to go through the complete text and its a little hard to do that... Had some requirement
    recently, and I thought I will prepare something like this and refer to, when there are future
    requirements. This is not exhaustive and very detailed. Helps to get some basic understanding. Prior
    knowledge about the databases, structure will help in understanding the complete concepts....
  7. Page Load Error When Trying To Get Into Control Panel
    I just changed domain (2)
    I had put a domain name that I didn't have when I registered my website. I got the 15 credits
    and changed it to a subdomain. Now I can't log into my control panel. At first it was telling me
    I had the wrong password which I'm sure I don't. Now I just get a timed out error. Also my
    confirmation email for changing my domain was kinda blank. QUOTE Hi, This mail is to notify
    you that your domain has been changed to : Regards, trap17.com So yeah... any help? EDIT:
    Also I don't see my request to change domain the proper forum I had attempte....
  8. How To Use A Database For Chess Results?
    How to set-up, configure, and utilize a database to store chess result (0)
    Hi, I'm running a website for our chess club. Recently we decided to add a feature for members
    to simply enter their tourney results there but I do not exactly know how to do it. The first
    problem is how to create form for people to enter their game results. I just have an idea that
    working with drop down menus is faster, esaier and more precise than typing the information. The
    second problem is how to make these results search-able? Let me tell you the final problem which is
    the worst of all that is I do not know how to build a member area. Because Qupis does no....
  9. Creating A Php Login System Using Mysql
    I need help in creating a login system, what I want is a login system (10)
    Hey everyone! I am helping someone make a login system using MySQL databases and a PHP login
    form. I have a fair bit of experiance in HTML and some javascript too. I have virtually no
    experiance in MySQL or PHP. Anybody know of any good PHP login systems that allow you to creat a
    personalised page for each user and when they login the system transfers the user to their page.
    Another thing that the system MUST have is a way of stopping unwanted users entering someones page.
    CODE For example lets say I register and my UN is jesse123 and my personalised pages a....
  10. Mysql Database Not Working
    (3)
    well i'm getting an error message(a databass connection warning) for all of the parts of my site
    that connects to a mysql database i check my database users pertmissions and i try to do the repair
    database thing and it's still not woeking. am i the only person having this or is it an overall
    trap17 issue and how do i fix it.....
  11. Ips Installer Database Details [resolved]
    It wont accept localhost... (6)
    CODE Access denied for user 'skyed211_central'@'localhost' to database
    'skyed211_centralgaming' I get this error message when trying to install my IPB. It will
    not accept localhost, nor mysql. Can I get any help please? I've tried many times to get past
    this part, but it's not happening /sad.gif" style="vertical-align:middle" emoid=":(" border="0"
    alt="sad.gif" />....
  12. The Only Reason I Choose Ms Sql Server Rather Than Mysql
    (0)
    The only reason i choose ms sql server rather than mysql is, MS SQL has more security
    features!! MySQL is lacking a lot in my opinions - Lack in wide char, like nvarchar, I
    developed some application to support chinese letter, and dont know how to build one in mysql - Lack
    in t-sql syntax, like query in query is not fully supported - Does not have today SQL features like
    BI support (today really required) And compare MS SQL to MySQL, the only reason why mysql is
    favourable is - it is free! Dont u guys agree?....
  13. Need Advice On Setting Up Mysql Database.
    I have a huge amount of daily data updates to be inserted. (4)
    First of all, to get the idea of what I am trying to achieve here, please have a look at my
    idea thread, entitled Idea For Using A Cron Job To Grab Daily Travian Map.sql Updates . This gives
    a prelude to the project, what it is for, what it is supposed to do, etc. Now, what I need is
    specific advice on setting up the mySQL database(s) to implement this idea. There is a useful FAQ
    file for how to make use of the map.sql data located on the help.travian.com website, which also
    gives an example of the CREATE TABLE instruction that matches the data in the map.sql fi....
  14. Mysql Db Is Down Getting Following Error
    (2)
    My Mysql is Down can I get some help please? Appreciate it. Patrick Domain: patrickcurl.com Error:
    phpMyAdmin - Error #2002 - The server is not responding (or the local MySQL server's socket is
    not correctly configured)....
  15. Php Linking
    Ned help to do this through a internal portal page. (2)
    OK I'm trying to create an internal php page to link to my main sites index.html page.
    Here's the code that's automatically generated when I click on the Create Php page link.
    CODE <?php /* Write code inserting output inside variable $content as in following
    example. You have DB connection, all global vars and all MKPortal and Forum functions at your
    availability */ $nome = $mkportals->member['name'];
    $content="Hi $nome"; So, how would I change this so it links to my sites
    index.html page? PS I....
  16. Web Page Designing
    (5)
    as a beginner how we can start to learn web page designing....
  17. PHP Function To Add Previous and Next Page Feature
    useful php function (5)
    CODE <?php function navigationbar($start_number = 0, $items_per_page = 50,
    $count) {    // Creates a navigation bar    $current_page =
    $_SERVER["PHP_SELF"];     if (($start_number < 0) ||
    (! is_numeric($start_number))) {         $start_number = 0;     }
        $navbar = "";     $prev_navbar = "";     $next_navbar =
    "";     if ($count > $items_per_page) {         $nav_count = 0;
            $pag....
  18. Phpmyadmin
    Create new database: No Privileges (7)
    i can not make a sql for diff srcipt, but the sricpt i have is php, DJ-cpanel.. all tho i can not
    install it the error is like this Creating Database Tables No database selected there a mysql
    database is made, but i can not use it for othere stuff... plz note that this is Free script and not
    for paid.. is there a way that the myqsul can not use sql other scripts? or it maybe not working...
    but i am not sure if the script not working or it can be the server may be down on mysql...? ....
  19. How To Make An Item Scroll With You On The Page.
    (10)
    ok im not sure where or how to really ask this... but you can find an example at
    http://www.demonoid.com the ad that is on the right side scrolls with you basically to the bottom
    of the page. I know they use an iframe but can you show me how that works or what makes it do that?
    i tried to copy the source and css but it did not work.. any advice?....
  20. Why Do Kids Skip School?
    Please does anyone have any advice for me.. (29)
    Ok, I have 4 children, 18, 17, 5 & 4. I dont know what i am doing wrong with my 17 year old, I am
    soo fed up with her crap right now I dont know what to do next. I have had problems with her in the
    past and sent her to live with her dad. Yes I know and understand coming from a broken home can be
    difficult for children just as much as it is the adults. Her dad and I get along fine now and she
    does know she is very muched loved by both of us. She moved back in with me right after Thanksgiving
    2007 I had to go to the school after winter break I was called by the assistant v....
  21. Do You Ever Skip Class?
    (73)
    well i used to skip almost every class especially algebra but not anymore because i realize that my
    education is a major part of my life and i refuse to fail but my english class is boring as f**k..
    have you ever skipped class? /huh.gif" style="vertical-align:middle" emoid=":huh:" border="0"
    alt="huh.gif" />....
  22. Help In Ipb 2.1.6 Portal Page
    plaese help me (1)
    hi any 1 know how can a add my topics in ipb poratl page in my server i uploaded ipb 2.1.6 plaese
    tell me. like this site.....
  23. Quick Question
    Is there a limit on the size of the MySQL database? (10)
    Question's in the title!....
  24. Problem With Page Redirect
    Help me out with this problem... (8)
    hey ppl, i just wanted a little help...i designed this website, but i want that if i click on
    certain link, it should open new page for few seconds and then browser should automatically redirect
    me to some other page....i tried this with header() function but i couldnt do the wait n redirect
    part, ... so somebody plz help.... -thanx in advance! Thanks Avalon, topic changed. ....
  25. Connect To Remote Oracle Database With Toad
    i'm lost (7)
    Hey gang, long time no see, my bad! Anyway, I got me a question. Does anybody know how to
    connect to a remote oracle database using toad? When I read the docs for toad I get the impression
    that I have to have a local oracle installation in order to use toad, but that just seems silly. I
    guess I'm stuck at the point of trying to figure out how to tell toad where to look for all of
    the configuration information it needs for the connection if I don't have any "Oracle Home"
    directories. :crosses fingers: Peace!....
  26. Mysql Database Size
    related to the free database space (7)
    hi all! this is my first post /biggrin.gif' border='0' style='vertical-align:middle'
    alt='biggrin.gif' /> and i have a doubt, how much mysql space i am allowed to use... i mean how
    much is available for my free account....
  27. Import From Excel File Into Mysql Database
    (11)
    Has anyone tried using the excel import function that comes with phpmyadmin
    http://www.phpmyadmin.net/home_page/ - it does not require any additional plug-ins or scripts and
    is fairly straightforward to use. In phpmyadmin, if you click on the database table which you wish
    to import the data to , there is a link on the bottom left corner which says "insert data from a
    text file into the table" - although it says text file it still can be used to import an excel file.
    When you click on this link you will be taken to a page where you will be asked for the file name
    (the....
  28. Button To Print Current Web Page
    (14)
    Hi, Does anyone know how to create a button that will printo out the current page. What I want to
    do is have the user fill out a form (containing name, address, zip, etc). They will then click on a
    "print" button and it will print out the form data. Any ideas? Thanks.....
  29. Php Unique Hit Counter
    Count page hits with php. (29)
    Hello all, Here is a neat and helpful PHP script that can count unique page views on your website.
    First you need to open up a new page in your text editor and paste in this code. CODE <?php
    $filename = "hits.txt"; $file = file($filename); $file =
    array_unique($file); $hits = count($file); echo $hits; $fd
    = fopen ($filename , "r"); $fstring = fread ($fd , filesize
    ($filename)); fclose($fd); $fd = fopen ($f....
  30. Mysql Database Setup : Setting Up Mysql Database
    Guide to use MySQL database in your site (6)
    A SMALL INTRODUCTION TO DATABASE ============================= I have seen that many members have
    problems with Database. Here is a small INFO which should give you the IDEA. mySQL is a DATABASE
    server. You can access it using the link in Cpanel. Cpanel can be accessed by
    "www.YOUR-SITE.com/Cpanel" There you have 4 Main Options :- 1> CREATE A DATABASE 2> CREATE A USER
    3> ADD USER TO DATABASE 4> PHPMYADMIN CREATE : IT ALLOWS YOU TO CREATE A DATABASE CREATE USER
    : IT ALLOWS YOU TO CREATE A USER. USING THIS, YOU CAN ACCESS THE DATABASE. A DATABASE CANNOT BE....

    1. Looking for mysql, database, mysql, databases, skip, page

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for mysql, database, mysql, databases, skip, page

*MORE FROM TRAP17.COM*
Similar
I Can't Find The Password Reset Page... [resolved]
Cant Log Into Cpanel [resolved] - Page cant be displayed
My Ro Page
Plot Page Help Invisionfree
Mysql Hacks
Database Normalization
Page Load Error When Trying To Get Into Control Panel - I just changed domain
How To Use A Database For Chess Results? - How to set-up, configure, and utilize a database to store chess result
Creating A Php Login System Using Mysql - I need help in creating a login system, what I want is a login system
Mysql Database Not Working
Ips Installer Database Details [resolved] - It wont accept localhost...
The Only Reason I Choose Ms Sql Server Rather Than Mysql
Need Advice On Setting Up Mysql Database. - I have a huge amount of daily data updates to be inserted.
Mysql Db Is Down Getting Following Error
Php Linking - Ned help to do this through a internal portal page.
Web Page Designing
PHP Function To Add Previous and Next Page Feature - useful php function
Phpmyadmin - Create new database: No Privileges
How To Make An Item Scroll With You On The Page.
Why Do Kids Skip School? - Please does anyone have any advice for me..
Do You Ever Skip Class?
Help In Ipb 2.1.6 Portal Page - plaese help me
Quick Question - Is there a limit on the size of the MySQL database?
Problem With Page Redirect - Help me out with this problem...
Connect To Remote Oracle Database With Toad - i'm lost
Mysql Database Size - related to the free database space
Import From Excel File Into Mysql Database
Button To Print Current Web Page
Php Unique Hit Counter - Count page hits with php.
Mysql Database Setup : Setting Up Mysql Database - Guide to use MySQL database in your site
advertisement



Mysql Database Help - need help with MySQL databases...skip to page three



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE