Jump to content

Any1 good in PHP?


Recommended Posts


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 14

Access 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

<?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

<?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?

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

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.php

change that to

$db_table = "users"; //The table that was created from install.php

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')

);

?>

Link to comment
Share on other sites

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')

);

?>

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...