Page 1 of 1

How to solve this php issue ? Thanks.

Posted: Sat May 30, 2009 10:49 pm
by Petebright
I'd a " contact us " function on my web site using php code.It working fine until a malicious software being downloaded and installed without my consent.

Now,when I clicked on Contact Us,it'd the following error message :

" Connect Error: Access denied for user: 'monek729@mj28.midphase.com' (Using password: YES) "

I don't think I'd that user name and setting of password in the first place.Unfortunately,I didn't back up my php code in the public_html/inc/db.inc.php and don't know the actual data.Now,it'd the following data in it,is it the right data ?

<?php
$hostname = "216.104.37.146";
$username = "monek729";
$password = "n0p5f46j19";
$dbname = "monekia201";
?>

It'll helpful if someone can provide an advice on how to solve this issue.

Thank you.

Re: How to solve this php issue ? Thanks.

Posted: Sat May 30, 2009 10:52 pm
by SidewinderX
You will have to ask your host if that information is correct. Since it is private information, you might want to remove your password.

Re: How to solve this php issue ? Thanks.

Posted: Sat May 30, 2009 11:02 pm
by Petebright
Hi SidewinderX,

Many thanks for your replied.In fact,I did asked my hosting company for helped before posting my issue here.However,they told me I have to make the changes myself ! I really don't how to get it done as I'm new to php code.Can anyone provide the solution for this php issue ? Thank you.

Re: How to solve this php issue ? Thanks.

Posted: Sat May 30, 2009 11:17 pm
by SidewinderX
That data is unique to you - it is your database username and password (and I will reiterate, private information and should not be posted in a public forum). The best bet is to log into your cPanel account and reset the that mysql users password. Then reflect those changes in that php file.

Re: How to solve this php issue ? Thanks.

Posted: Sun May 31, 2009 12:02 am
by Petebright
Hi SidewinderX,

The following are the information in mysql,

1 - There are no databases associated with your account.

2 - Current Users
There are no users associated with your account.

With these info,what should I do ?

In fact,I didn't set any user,password in mysql as I hardly know what is that ! Is there any way for me to find out the following info in my contact.php or any files in cpanel ?

$hostname =
$username =
$password =
$dbname =

Thank you.

Re: How to solve this php issue ? Thanks.

Posted: Sun May 31, 2009 10:13 am
by Petebright
I'd made some changes on the database,however,it had the following error message,may I know what wrong is it ? How to correct the code ? Thank you.

Query failed: Table 'monekia2_mycontactus.general' doesn't exist

Re: How to solve this php issue ? Thanks.

Posted: Sun May 31, 2009 3:43 pm
by mikemike
The 'general' table doesn't exist within the database 'monekia2_mycontactus'.

Re: How to solve this php issue ? Thanks.

Posted: Sun May 31, 2009 5:47 pm
by Petebright
The 'general' table doesn't exist within the database 'monekia2_mycontactus'. ? Please kindly provide an instruction on how to correct the php code,thank you.

Re: How to solve this php issue ? Thanks.

Posted: Sun May 31, 2009 6:37 pm
by mikemike
You'd need to create the table within the MySQL database that you're using. I'm assuming that this is either a third party script or someone else's code otherwise you'd know you'd need the table. If it's a third aprty script read any installation instructions that may have come with it and look for a file with SQL in it for adding the tables.