Member Registration And Login System |
||
Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.
In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.
Zymic Webmaster Forums Zymic Free Web Hosting Tutorials |
||
9 Pages
« < 7 8 9
|
![]() |
Member Registration And Login System |
||
Jun 17 2009, 02:43 PM
Post
#161
|
|
|
Newbie ![]() Group: Members Posts: 1 Joined: 17-June 09 Member No.: 99,918 |
DELETED: Apparently problem solved.
|
|
|
Jun 27 2009, 02:04 PM
Post
#162
|
|
|
Newbie ![]() Group: Members Posts: 7 Joined: 24-June 09 Member No.: 100,838 |
how do i create a table on phpadmin??
(i'm new) |
|
|
Jul 6 2009, 11:49 PM
Post
#163
|
|
|
Newbie ![]() Group: Members Posts: 1 Joined: 11-May 09 Member No.: 94,698 |
I had a problem with this code
CODE <?php require 'db_connect.php'; // require our database connection // which also contains the check_login.php // script. We have $logged_in for use. if ($logged_in == 0) { ?> <html> <head> <title>Member Profile</title> </head> <body> Im sorry, but you must be logged in to view this page! </body> </html> <?php } else { ?> <html> <head> <title>Member Profile</title> </head> <body> Welcome to the members only section!!!</body> </html> <?php } ?> After logging and going on this page, it said "Welcome to the members only section". After refreshing it, it said I need to log in to see it... |
|
|
Jul 24 2009, 04:54 PM
Post
#164
|
|
|
Newbie ![]() Group: Members Posts: 1 Joined: 24-July 09 Member No.: 104,144 |
instead of using phpmyadmin to delete users and add registration options.. could you please provide soem type of php script to use as an admin panel... also is there a way to make user groups.. so if a user it not part of one group they see a different page insead of one member page for all...
|
|
|
Aug 14 2009, 10:37 PM
Post
#165
|
|
|
Newbie ![]() Group: Members Posts: 7 Joined: 24-June 09 Member No.: 100,838 |
wath have i wrhite wrong?
CODE <?php $dbhost = 'localhost'; // your database username. $dbusername = 'mangahotell_You'; // the password that corresponds to the above username. $dbpasswd = '(same password that i used to loggin on my phpadmin)'; // the database name that your username is associated with. $database_name = 'mangahotell_You'; $connection = mysql_connect("$vndv","$mangahotell_you","$(same password that i used to loggin on my phpadmin)") or die ("Couldn't connect to server."); $db = mysql_select_db("$mangahotell_you", $connection) or die("Couldn't select database."); // we write this later on, ignore for now. include('check_login.php'); ?> help me please ;_; |
|
|
Aug 14 2009, 11:22 PM
Post
#166
|
|
|
Outrageously Uber Ninja ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 1,740 Joined: 10-July 08 From: UK Member No.: 44,994 |
You were only supposed to change it in 4 places, not 8.
CODE <?php $dbhost = 'localhost'; // your database username. $dbusername = 'mangahotell_You'; // the password that corresponds to the above username. $dbpasswd = '(same password that i used to loggin on my phpadmin)'; // the database name that your username is associated with. $database_name = 'mangahotell_You'; $connection = mysql_connect($dbhost, $dbusername, $dbpassword) or die ("Couldn't connect to server."); $db = mysql_select_db($database_name, $connection) or die("Couldn't select database."); // we write this later on, ignore for now. include('check_login.php'); ?> swordz |
|
|
Aug 15 2009, 12:01 AM
Post
#167
|
|
|
Newbie ![]() Group: Members Posts: 7 Joined: 24-June 09 Member No.: 100,838 |
wasn't that only changed in 3 places?
well it still says: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mangahotell_You'@'localhost' (using password: NO) in /www/vndv.com/m/a/n/mangahotell/htdocs/db_connect.php on line 13 Couldn't connect to server. <.< |
|
|
Aug 15 2009, 10:11 AM
Post
#168
|
|
|
Newbie ![]() Group: Members Posts: 7 Joined: 9-August 09 Member No.: 105,888 |
all the code is such login.php, register.php, logout.php and etc is working good to me but the problem is this code
<?php require 'db_connect.php'; // require our database connection // which also contains the check_login.php // script. We have $logged_in for use. if ($logged_in == 0) { ?> <html> <head> <title>Member Profile</title> </head> <body> Im sorry, but you must be logged in to view this page! </body> </html> <?php } else { ?> <html> <head> <title>Member Profile</title> </head> <body> Welcome to the members only section!!!</body> </html> <?php } ?> Save Back it wont work.... when i go to my website url.. the page didnt asked me to log in... anybody help pls |
|
|
Aug 24 2009, 03:39 PM
Post
#169
|
|
|
Newbie ![]() Group: Members Posts: 7 Joined: 24-June 09 Member No.: 100,838 |
wasn't that only changed in 3 places? well it still says: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mangahotell_You'@'localhost' (using password: NO) in /www/vndv.com/m/a/n/mangahotell/htdocs/db_connect.php on line 13 Couldn't connect to server. <.< someone thant culd help? |
|
|
Sep 19 2009, 05:19 AM
Post
#170
|
|
|
Newbie ![]() Group: Members Posts: 4 Joined: 3-September 09 Member No.: 108,774 |
I am using zymic to host a web. on the db_connect.php page. what should i type on the $dbhost = '???'?
thanks ps. i saw that someone said you should leave it as localhost. is it true? |
|
|
Sep 22 2009, 04:20 AM
Post
#171
|
|
|
Newbie ![]() Group: Members Posts: 25 Joined: 11-June 09 Member No.: 99,048 |
|
|
|
Sep 24 2009, 01:09 AM
Post
#172
|
|
|
Newbie ![]() Group: Members Posts: 1 Joined: 23-September 09 Member No.: 111,237 |
i have this error on my .php paged
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/clanteam.com/6/1/9/619america/htdocs/register.php:5) in /www/clanteam.com/6/1/9/619america/htdocs/check_login.php on line 3 any clues? http://619america.clanteam.com/register.php /logout.php |
|
|
Sep 24 2009, 02:06 PM
Post
#173
|
|
|
Newbie ![]() Group: Members Posts: 4 Joined: 3-September 09 Member No.: 108,774 |
I am using zymic to host a web. on the db_connect.php page. what should i type on the $dbhost = '???'? thanks ps. i saw that someone said you should leave it as localhost. is it true? I am using Dreamweaver. I want to make a MYSQL connection to the database. What should I type in the server, usename and password? |
|
|
Sep 24 2009, 04:37 PM
Post
#174
|
|
![]() Outrageously Uber Ninja ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrators Posts: 2,526 Joined: 11-March 07 From: UK Member No.: 9 |
|
|
|
Sep 27 2009, 03:12 AM
Post
#175
|
|
|
Newbie ![]() Group: Members Posts: 4 Joined: 3-September 09 Member No.: 108,774 |
|
|
|
Nov 6 2009, 04:16 AM
Post
#176
|
|
|
Newbie ![]() Group: Members Posts: 7 Joined: 13-May 09 Member No.: 94,883 |
I tried the first script to test my mysql connection and this is the error I got:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'superrandompuppy'@'localhost' (using password: YES) in /www/uuuq.com/s/u/p/superrandompuppy/htdocs/db_connect.php on line 18 Couldn't connect to server. From this message, I can tell that I am using the right password, but apparrently I'm not formatting the database name right? How should the database name be formatted to correct this problem? |
|
|
Nov 8 2009, 02:44 AM
Post
#177
|
|
![]() Newbie ![]() Group: Members Posts: 1 Joined: 7-November 09 From: Austin, TX Member No.: 117,447 |
I've done everything correctly (just modified a couple table values), and it looks like everything works. I get through the registration and it informs me that it was added to the database, but for some reason, when I try to log in it says the account doesn't exist. When I look at it through phpAdmin, the values were definitely not inserted. Any help?
EDIT: WOW, found my mistake literally 30 seconds after posting this. Sorry! I'm good. |
|
|
![]() |
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users) |
||
| 0 Members: | ||
Forum Jump |
||
| Lo-Fi Version | Time is now: 21st November 2009 - 07:34 AM |