+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 24
Like Tree2Likes

Thread: MySQL database

  1. #1
    mttheopfor89 is offline x10Hosting Member mttheopfor89 is an unknown quantity at this point
    Join Date
    Aug 2011
    Posts
    14

    MySQL database

    I need to use MySQL for a login system but I do not have the info for it. The video I was watching said that the hosting services would provide it. May I please have the info?

  2. #2
    techairlines's Avatar
    techairlines is online now x10 Flyer techairlines has much to be proud oftechairlines has much to be proud of
    Join Date
    Jul 2009
    Location
    New York City
    Posts
    2,853

    Re: MySQL database

    You create your own MySQL Databases from cPanel. See this article for further details: http://x10hosting.com/wiki/MySQL_Information
    Best regards,
    Brian Yang - TechAirlines


    How am I doing? Click the star button at the bottom left to rate this post. Thanks.
    Terms of Service | Account Portal | Wiki

  3. #3
    mttheopfor89 is offline x10Hosting Member mttheopfor89 is an unknown quantity at this point
    Join Date
    Aug 2011
    Posts
    14

    Re: MySQL database

    Thanks!

  4. #4
    mttheopfor89 is offline x10Hosting Member mttheopfor89 is an unknown quantity at this point
    Join Date
    Aug 2011
    Posts
    14

    Re: MySQL database

    Didn't want to start a new thread since this was at the top... For some reason this happens to all BUT index.php. The pages that aren't the main one glitch up somewhere in the CSS file. Here are the pages:

    Supposed to look like
    Aligns wrong
    Background is wrong
    CSS file linked to those pages

  5. #5
    essellar's Avatar
    essellar is offline Community Advocate essellar has a spectacular aura about
    Join Date
    Feb 2010
    Location
    Toronto, Ontario, CA
    Posts
    1,153

    Re: MySQL database

    The link for your stylesheet should be:

    HTML Code:
    <link rel="stylesheet" type="text/css" href="/stuff/style.css" />
    Likewise, your image links should be:

    HTML Code:
    <img src="/logo.png" border="0" alt="theopfor" />
    Note the leading slash, which makes the link relative to your public server root. The entire path "/home/theopfor/public_html" lives above your web root -- it's not visible to the browser crowd.
    “Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
    "It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)

  6. #6
    mttheopfor89 is offline x10Hosting Member mttheopfor89 is an unknown quantity at this point
    Join Date
    Aug 2011
    Posts
    14

    Re: MySQL database

    If I use the / like you did my page gets filled with: Warning: include() [function.include]: Failed opening '/stuff/doctype.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/theopfor/public_html/login/login.php on line 1

    Any other way? I am using the PHP include() function in all my pages.

  7. #7
    essellar's Avatar
    essellar is offline Community Advocate essellar has a spectacular aura about
    Join Date
    Feb 2010
    Location
    Toronto, Ontario, CA
    Posts
    1,153

    Re: MySQL database

    Ah, a true n00b. You need to understand that there are two different kinds of links going on here. Your PHP include() and require() statements run on the server, so they need to use the paths applicable on the server. Your style sheet and image links are fetched separately by the browser when your page loads, so they need to use the web address. So---change the links I advised you to change, and put your include()s back the way they were.
    “Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
    "It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)

  8. #8
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: MySQL database

    Another way of thinking about it is URLs and filesystem paths belong to different namespaces, similar to how variable and function names are in different namespaces in PHP, as are HTML element IDs and classes. Street addresses and phone numbers provide another example.

    Starting a new thread is the appropriate thing to do when you've got a new topic. That way, people who come across a thread while working on a problem they're facing don't have to go through irrelevant information.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  9. #9
    mttheopfor89 is offline x10Hosting Member mttheopfor89 is an unknown quantity at this point
    Join Date
    Aug 2011
    Posts
    14

    Re: MySQL database

    Quote Originally Posted by essellar View Post
    Ah, a true n00b.
    Yeah... I need to still work on some stuff I guess...

    So... To late to start a new thread? Sorry for being quite n00by. Is there any ways to fetch stuff from one folder and put it on the page? Here is kinda like a tree to explain what I mean:

    -stuff
    --style.css
    --header.css
    --continued on
    -login
    --login.php
    -index.php
    -projects.php

  10. #10
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: MySQL database

    No need to apologize for being a novice. What's important is that you make an effort (don't be the bad kind of lazy) to learn, and use your head.

    It's never too late to start a new thread if you've got a new topic.

    Quote Originally Posted by mttheopfor89 View Post
    Is there any ways to fetch stuff from one folder and put it on the page?
    This question isn't intelligible. What do you mean by "fetch"? The normal meaning is to download, usually using file transfer software. How do you want to "put it on the page"?

    Nested lists are a good way of showing hierarchies. For example (spaces added in brackets to prevent the text from being interpreted as BBCode & to preserve whitespace; actual code has no spaces in BBCode tags):
    Code:
    [ list]
    [ *]stuff/
      [ list]
      [ *]style.css
      [ *]header.css
      [ *]continued on
      [ /list ]
    [ *]login/
      [ list]
      [ *]login.php
      [ /list ]
    [ *]index.php
    [ *]projects.php
    [ /list]
    Which produces:
    • stuff/
      • style.css
      • header.css
      • continued on
    • login/
      • login.php
    • index.php
    • projects.php
    Last edited by misson; 10-13-2011 at 07:06 PM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. MySQL Unknown Database 'Database Name' Error
    By nostradamus in forum Programming Help
    Replies: 7
    Last Post: 11-16-2010, 08:22 AM
  2. MySQL database or MySQL database port is down
    By afge2341 in forum Free Hosting
    Replies: 1
    Last Post: 08-21-2010, 05:15 PM
  3. How to use database file in my mysql database
    By ChatIndia in forum Off Topic
    Replies: 1
    Last Post: 01-17-2010, 11:55 AM
  4. Connecting local mysql client to mysql database
    By nadunalexander in forum Free Hosting
    Replies: 4
    Last Post: 01-01-2010, 04:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers