Free Web Hosting Forum
Go Back   Free Web Hosting Forum > Website Building > Web Programming
Reload this Page Creating a Login and a Registation Form on my website
Reply
 
Thread Tools Display Modes
(#1 (permalink))
Old
Junior Member
Diript is on a distinguished road
 
Posts: 3
Join Date: Jan 2012
Location: Oporto (Portugal)
Exclamation Creating a Login and a Registation Form on my website - 01-29-2012, 11:32 AM

Hey people!

I'm new at the forum, and I'm a php newbie trying to create a login for my website with a registation form connected to a database that works as well.

I've followed this tutorial but: http://phpeasystep.com/phptu/6.html but I don't know how to connect my database to it.
I've already created a phpMyAdmin database and table with the required info as you can see here:





Can anyone help me please? It's really important, it's for my school project
Thanks a lot everyone. Best regards

Last edited by Diript; 01-30-2012 at 07:59 PM.
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
ShocK's Avatar
Senior Member
ShocK is on a distinguished road
 
Posts: 1,622
Join Date: Jul 2011
Location: UK
Default 01-29-2012, 12:54 PM

Hi, you can't use localhost for the database name if that's what you've done, go to members area and clik the MySQL icon to see your database name, username and host name.
Reply With Quote
(#3 (permalink))
Old
Junior Member
Diript is on a distinguished road
 
Posts: 3
Join Date: Jan 2012
Location: Oporto (Portugal)
Default 01-29-2012, 01:49 PM

Yeah I know that, but I don't know how to proceed to set the code, etc etc, can you help me please?
Reply With Quote
(#4 (permalink))
Old
Junior Member
Diript is on a distinguished road
 
Posts: 3
Join Date: Jan 2012
Location: Oporto (Portugal)
Default 01-30-2012, 07:52 PM

Hey people,

I still trying to make it work please, help me!
Reply With Quote
(#5 (permalink))
Old
KnK KnK is offline
Senior Member
KnK is on a distinguished road
 
Posts: 199
Join Date: Sep 2009
Location: Spain, but orriginally from Reading UK
Default 02-02-2012, 12:26 PM

you need to edit this part of checklogin.php

Code:
$host="localhost"; // Host name 
$username=""; // Mysql username 
$password=""; // Mysql password 
$db_name="test"; // Database name 
$tbl_name="members"; // Table name
to look similar to this

Code:
$host="mysql12.000webhost.com"; // Host name 
$username="a8339969_test"; // Mysql username 
$password="passw4d"; // Mysql password 
$db_name="a8339969_test"; // Database name 
$tbl_name="members"; // Table name

Last edited by KnK; 02-02-2012 at 12:28 PM.
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 Off
Pingbacks are Off
Refbacks are Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com