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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.