Tutorial: PHP/MySQL Membership System

palmerx6414

New Member
Messages
28
Reaction score
0
Points
0
This is a great tutorial, but I'm new to the concept of connecting PHP to a MySQL database...

What do you do with that first part for the database??
Code:
CREATE TABLE IF NOT EXISTS `users` (
  `user_id` int(11) NOT NULL auto_increment,
  `username` varchar(225) NOT NULL default '',
  `password` varchar(225) NOT NULL default '',
  `email` varchar(225) NOT NULL default '',
  PRIMARY KEY  (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
 
Messages
12
Reaction score
1
Points
0
This is a great tutorial, but I'm new to the concept of connecting PHP to a MySQL database...

What do you do with that first part for the database??

You put that into phpmyadmin under the "SQL" section after you created a database. (create database by clicking "MySQL Database Wizard" on the cPanel home) That's how I was when I first started, and now I know a lot about it. Good luck! :)
 

wifiber

New Member
Messages
28
Reaction score
1
Points
0
This is great. I know it's kind of an old topic but it's very insightful for people learning PHP/MySQL.

Thank you, poster! :biggrin:
 
Top