Go Back   Free website templates > Web Template Help > PHP and MySQL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Join now to download all the free website templates or post on the forum. If you have never been on a forum before read the FAQ. It's quick, easy and free to join!
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-10-2008, 07:20 PM
Jaybirddesigns's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Helendale,ca
Posts: 133
Jaybirddesigns is on a distinguished road
Default LOG IN SCRIPT // Tutorial \\

Don't now if this is the right area to post this, but here you go.

Login Tutorial.

Requirements: Be able to create a mysql database, and edit php.

Note: your server must be able to run php.

First unzip all the files in this download here:
http://www.jaybirdfolio.com/LoginScript.html

Place the folder called login on your server.

Next, you have to do a little MYSQL work. Within your admin area of your server create a database and call it whatever you want, just remember what you called it, we need it later.

Next, in your web editor (dreamweaver, notepad, whatever.) open the file that’s called config.php this is how we will connect to the database you just created.

Enter your information example:


Code:
<?php
$server = "localhost";    // server to connect to.
$database = "jaybirdf_RealEstate";       // the name of the database.
$db_user = "jaybirdf_Admin";   // mysql username to access the database with.
$db_pass = "Put your password here";  // mysql password to access the database with.
$table = "users";                       // the table that this script will set up and use.
?>
Next, Save and upload your config.php file and point your web browser to the file called create.php

For instance http://www.yoursite.com/login/create.php

If you did everything correct you should see “Complete”
This means you created a table within your database and you’re almost done.

Now all you have to do is place all the secured information you want to hide, until people register of course on members.php page. You can modify the code so that it will point to some other page instead of member.php.

Let me know if you need further assistance.

See example Here: http://www.jaybirdfolio.com/login/register.php
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:01 AM.



mouseover mouseover mouseover