Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP Registration Form
Old 02-07-2008, 08:50 PM PHP Registration Form
np2100's Avatar
Skilled Talker

Posts: 70
Name: Nick
Trades: 0
Hello, I am trying to make a registration and login for my website. I am using Dreamweaver currently yet everytime I download MySQL from their website I cant get a connection going. Is there any other way to make a registration and login form for a website without MySQL and it doesn't have to be in php. Any suggestions or codes would be greatly appreciated.
Thank you.
np2100 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-07-2008, 08:53 PM Re: PHP Registration Form
Sharon_leic's Avatar
Super Talker

Posts: 115
Name: Sharon
Location: Leicester, uk
Trades: 0
Hiya

did you set up the database on your host for it to connect to?
__________________
mysql_connect("localhost", "brain", "sharon") or die(mysql_error());
mysql error: brain doesn't exist!
Sharon_leic is offline
Reply With Quote
View Public Profile
 
Old 02-07-2008, 08:58 PM Re: PHP Registration Form
np2100's Avatar
Skilled Talker

Posts: 70
Name: Nick
Trades: 0
Yea I set up a MySQL database on my computer and I cant figure out how to get it into Dreamweaver. Anyone know?
np2100 is offline
Reply With Quote
View Public Profile
 
Old 02-07-2008, 09:01 PM Re: PHP Registration Form
Sharon_leic's Avatar
Super Talker

Posts: 115
Name: Sharon
Location: Leicester, uk
Trades: 0
i am currently writing a small community site with log in using html, php and mysql but i use mysql on my host.

are you actually hosting the website, php and mysql server on your pc then?
__________________
mysql_connect("localhost", "brain", "sharon") or die(mysql_error());
mysql error: brain doesn't exist!
Sharon_leic is offline
Reply With Quote
View Public Profile
 
Old 02-07-2008, 09:05 PM Re: PHP Registration Form
Sharon_leic's Avatar
Super Talker

Posts: 115
Name: Sharon
Location: Leicester, uk
Trades: 0
<?php
// Make a MySQL Connection
mysql_connect("localhost", "databaseusername", "databasepassword") or die(mysql_error());
mysql_select_db("databasename") or die(mysql_error());
?>

is what i use, but not directly into log in form, you need to include it instead and have this php file in another directory that isn't easy accessible to the public or they could to get your database username and password :-(

Shaz
__________________
mysql_connect("localhost", "brain", "sharon") or die(mysql_error());
mysql error: brain doesn't exist!
Sharon_leic is offline
Reply With Quote
View Public Profile
 
Old 02-07-2008, 09:06 PM Re: PHP Registration Form
np2100's Avatar
Skilled Talker

Posts: 70
Name: Nick
Trades: 0
I dont know the database name, I made it in the MYSQL wizard but it never had me make a database name, and what should I put under localhost?

Last edited by np2100; 02-07-2008 at 09:10 PM..
np2100 is offline
Reply With Quote
View Public Profile
 
Old 02-07-2008, 09:15 PM Re: PHP Registration Form
Sharon_leic's Avatar
Super Talker

Posts: 115
Name: Sharon
Location: Leicester, uk
Trades: 0
hmmm i am guessing the database wizard is only the wizard for the connection settings, the actual database is a different thing, you have to set that up on your host
when you do, you will know ..
the database name
the database username
the database password
and the host, mainly you just use "localhost" but thats pending on how your website host has it set up.

in your website host, go to mysql and set up a new database and you will have a little more understanding of what goes where

Shaz
__________________
mysql_connect("localhost", "brain", "sharon") or die(mysql_error());
mysql error: brain doesn't exist!

Last edited by Sharon_leic; 02-07-2008 at 09:21 PM..
Sharon_leic is offline
Reply With Quote
View Public Profile
 
Old 02-07-2008, 09:32 PM Re: PHP Registration Form
np2100's Avatar
Skilled Talker

Posts: 70
Name: Nick
Trades: 0
All that the installation has is the root password but no database name. By the way it is called Mysql server instance config wizard. Do you know what the problem is?
np2100 is offline
Reply With Quote
View Public Profile
 
Old 02-09-2008, 08:00 PM Re: PHP Registration Form
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
Download and install SQLyog (http://www.webyog.com/en/downloads.php) they have a free version.

Open the program, define the connection to your mysqldb ie Host => localhost, username => root , password => mydbpwd

connect, then right click in the left window pane anywhere, and click create database, enter desired name, hit enter, right click newly created db and click create table(s) then create your table layout. click ok, enter table name, click ok again. now you are ready to connect to the db and start adding data.

Word of advice create a new mysql user for your website, along with a good password, and assign that user permission for that database only.

or if you have php configured correctly download and setup on your webserver phpMyAdmin
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
Old 02-22-2008, 11:28 AM Re: PHP Registration Form
np2100's Avatar
Skilled Talker

Posts: 70
Name: Nick
Trades: 0
I got sqlyog and set up the connection but then when i go to my website server on smartftp and upload the registration form. But it doesnt write to the database because it says it cannot connect to localhost on 10061. But I connected fine in sqlyog. Thanks
__________________
Visit
Please login or register to view this content. Registration is FREE

Your source for the latest online games.
np2100 is offline
Reply With Quote
View Public Profile
 
Old 11-11-2010, 03:43 AM Re: PHP Registration Form
Junior Talker

Posts: 1
Name: Jake Oliver Duncan
Trades: 0
You dont need much..
if you are using WAMP its simple also, plus its proberly the same.
server = "localhost"
username = "root"
password = ""
database_name = "Name of db u want to use..."

Its simple...
JDuncan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP Registration Form
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32833 seconds with 12 queries