cancer10 Posted April 21, 2005 Share Posted April 21, 2005 I am unable 2 run this login scriptplease help me making it workhttp://www.shouvik.mfhosting.com/test/test2/ Link to comment Share on other sites More sharing options...
gamehead200 Posted April 21, 2005 Share Posted April 21, 2005 Ummmmm... Did you setup a MySQL database? Link to comment Share on other sites More sharing options...
matrix0978 Posted April 21, 2005 Share Posted April 21, 2005 Warning: mysql_connect(): Access denied for user: 'shouvik_pompa@orbit.serverz.org' (Using password: YES) in /home/shouvik/public_html/test/test2/login.php on line 14Access denied for user: 'shouvik_pompa@orbit.serverz.org' (Using password: YES)Seems like you put in the wrong username. There shouldnt be a, @orbit.serverz.org. What ever your username to log into your web hosting account is what you put there. If im mistaken im sorry. Link to comment Share on other sites More sharing options...
matrix0978 Posted April 21, 2005 Share Posted April 21, 2005 Also, did you check to see if you make a Table in your MySQL database? Link to comment Share on other sites More sharing options...
cancer10 Posted April 22, 2005 Author Share Posted April 22, 2005 well, can u guys make my script work? I am giving u the full source code in zip format. U c that i am a n00b in php, I got that code fomr some site but its not working for me or may b i cannot get it into workhttp://www.shouvik.mfhosting.com/test/test...load_Source.zip Link to comment Share on other sites More sharing options...
matrix0978 Posted April 22, 2005 Share Posted April 22, 2005 <?php//config.php//http://www.codingdreams.org$db_host = "shouvik.mfhosting.com"; //Where your mysql server is$db_user = "shouvik_pompa"; //The user name of your mysql account$db_pass = "shouvik_pompa"; //The password of your mysql account$db_name = "shouvik_dblogin"; //The database you would like to work with$db_table = "tbllogin"; //The table that was created from install.php$usernameI = "admin"; //Our user name for the install$passwordI = "codingdreams"; //Our password for the install?>Ok well for '$db_host = "shouvik.mfhosting.com;"'You want to put 'localhost' for it to look like. $db_host = "localhost";Have you created the table in the MySQL Database? Link to comment Share on other sites More sharing options...
cancer10 Posted April 22, 2005 Author Share Posted April 22, 2005 <?php//config.php//http://www.codingdreams.org$db_host = "shouvik.mfhosting.com"; //Where your mysql server is$db_user = "shouvik_pompa"; //The user name of your mysql account$db_pass = "shouvik_pompa"; //The password of your mysql account$db_name = "shouvik_dblogin"; //The database you would like to work with$db_table = "tbllogin"; //The table that was created from install.php$usernameI = "admin"; //Our user name for the install$passwordI = "codingdreams"; //Our password for the install?>Ok well for '$db_host = "shouvik.mfhosting.com;"'You want to put 'localhost' for it to look like. $db_host = "localhost";Have you created the table in the MySQL Database?<{POST_SNAPBACK}>yes but still of no use also tried using localhost but same result can u make me a mysql database so that I will only need to upload it and make it work Link to comment Share on other sites More sharing options...
ZeroHour Posted April 22, 2005 Share Posted April 22, 2005 Try taking out the @ section.Confirm what you need with your isp/host Link to comment Share on other sites More sharing options...
matrix0978 Posted April 22, 2005 Share Posted April 22, 2005 We cant make on for you, but the install.php looks like it should work. From what i see, if you opened up your install.php and ran it, and it checked as ok. then it should work after making the table. There must be something wrong in the config file. But keep host as 'localhost'.$db_table = "tbllogin"; //The table that was created from install.phpchange that to $db_table = "users"; //The table that was created from install.phpand try using this script to make table. <?php $linkID = mysql_connect('localhost','login','password') or die("Error,database not accessing!"); mysql_select_db('masterdb',$linkID);CREATE TABLE 'users' ('id' BIGINT(11) DEFAULT '0' NOT NULL AUTO_INCREMENT ,'username' VARCHAR( 25 ) NOT NULL ,'password' VARCHAR( 25 ) NOT NULL ,PRIMARY KEY ('id'));?> Link to comment Share on other sites More sharing options...
cancer10 Posted April 23, 2005 Author Share Posted April 23, 2005 and try using this script to make table. <?php $linkID = mysql_connect('localhost','login','password') or die("Error,database not accessing!"); mysql_select_db('masterdb',$linkID);CREATE TABLE 'users' ('id' BIGINT(11) DEFAULT '0' NOT NULL AUTO_INCREMENT ,'username' VARCHAR( 25 ) NOT NULL ,'password' VARCHAR( 25 ) NOT NULL ,PRIMARY KEY ('id'));?><{POST_SNAPBACK}>Where shall I put this code?I am sorry I m bothering u alot, actually I am a n00b in php and mysql and I need a login script to put in my site.I am sorry again. Link to comment Share on other sites More sharing options...
matrix0978 Posted April 23, 2005 Share Posted April 23, 2005 Make a file called 'install2.php' and upload it to server and open it in brower. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now