PHP and mySQL

bobocheez

New Member
Messages
19
Reaction score
0
Points
0
Ok so I have me a bux.to clone and no knowledge of....well pretty much anything
but, there are two files:
config.php, which I must edit with my mySQL database details and
data.php, which I must edit wity my site information

Usually I would just mess around with the code, but I don't want to screw this one up.

o and, for config.php:
$dhost = "localhost"; //usually localhost, or ip
$dusername = "buxto_buxuser"; // database user
$dpassword = "buxpass"; // database pass
$ddatabase = "buxto_buxto"; // database name

Do I create one database, or two -- one for regural users and one for me?

If there's anything else on config.php that I need to edit let me know and don't forget about data.php........if anyone just happens to know what I'm talking about
 

Slothie

New Member
Messages
1,429
Reaction score
0
Points
0
You create one database and assign one user to it.
 

konekt

New Member
Messages
100
Reaction score
0
Points
0
If you are using databases to create a user sign-in/up page, you do not actually give those users access to a database, but use your database to store the users. You should have one database that you have access to, and use it to organize the users.

I.E.

id User Pass Email
-|-|-----|----|--
-|-|-----|----|--
-|-|-----|----|--
-|-|-----|----|--

You manage your users in a database like that... adding the registered user name and pass.

Things to keep in mind:

-ENCRYPT password, you should not be able to see the text of the pass they entered


If you have the same information as your users, then one database will do; if you have other information, then there is nothing wrong with making a separate db to store that information.

I hope that is what you were asking, I was a little confused to be honest.
 
Last edited:
Top