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?
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?
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 thestar button at the bottom left to rate this post. Thanks.
Terms of Service | Account Portal | Wiki
Thanks!
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
The link for your stylesheet should be:
Likewise, your image links should be:HTML Code:<link rel="stylesheet" type="text/css" href="/stuff/style.css" />
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.HTML Code:<img src="/logo.png" border="0" alt="theopfor" />
“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)
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.
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)
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.
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
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.
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):
Which produces:Code:[ list] [ *]stuff/ [ list] [ *]style.css [ *]header.css [ *]continued on [ /list ] [ *]login/ [ list] [ *]login.php [ /list ] [ *]index.php [ *]projects.php [ /list]
- 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.