Jump to content

Newbe Question - How to Access MySQL Database


Napper

Recommended Posts

Hi everybody!

 

I am sorry to ask this kind of question, it seems to be so obvious that no tutorial really ever bothers to mention it. Here is my situation: I am working on a website, have good knowledge of HTML and reasonable knowledge of both JS and PHP, so the next stop obviously would be to implement some form of MySQL Database, especially since my customer is planning to build a little online product exhibition. My website providor has set up a MySQL Database on our server and I have username and password handy. Most of my knowledge I have from tutorials but so far I have not been able to grasp one all deciding concept of MySQL:

 

Where do ya enter them code?

 

Every tutorial I have encountered so far just starts with this happy-world \"now let\'s connect to the database. Type in...\" without giving me the faintest hint of where to type it in. I understand that the later query commands will be integrated into a PHP site but what about them data-base building, data-entering kind of things? Where do I punch in:

 

mysql_query(\"CREATE TABLE users (

firstname VARCHAR(20),

surname VARCHAR(20),

location VARCHAR(20))\");

 

and similar? I hope somebody can give me a hint here. It just CAN\'T be the DOS promt! It CAN\'T be...

 

Reg.

 

Napper

Link to comment
Share on other sites

Thank you very much for your help. I finally managed to install phpMySQL and am adding my tables and entries now. Since I had most of this already prepared on paper this is one heluva breakthrough! Thanks again!

 

Napper

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.