How to solve this php issue ? Thanks.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Petebright
Forum Newbie
Posts: 7
Joined: Thu May 28, 2009 5:53 am

How to solve this php issue ? Thanks.

Post 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.
SidewinderX
Forum Contributor
Posts: 407
Joined: Fri Jul 16, 2004 9:04 pm
Location: NY

Re: How to solve this php issue ? Thanks.

Post 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.
Petebright
Forum Newbie
Posts: 7
Joined: Thu May 28, 2009 5:53 am

Re: How to solve this php issue ? Thanks.

Post 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.
SidewinderX
Forum Contributor
Posts: 407
Joined: Fri Jul 16, 2004 9:04 pm
Location: NY

Re: How to solve this php issue ? Thanks.

Post 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.
Petebright
Forum Newbie
Posts: 7
Joined: Thu May 28, 2009 5:53 am

Re: How to solve this php issue ? Thanks.

Post 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.
Petebright
Forum Newbie
Posts: 7
Joined: Thu May 28, 2009 5:53 am

Re: How to solve this php issue ? Thanks.

Post 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
User avatar
mikemike
Forum Contributor
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Re: How to solve this php issue ? Thanks.

Post by mikemike »

The 'general' table doesn't exist within the database 'monekia2_mycontactus'.
Petebright
Forum Newbie
Posts: 7
Joined: Thu May 28, 2009 5:53 am

Re: How to solve this php issue ? Thanks.

Post 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.
User avatar
mikemike
Forum Contributor
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Re: How to solve this php issue ? Thanks.

Post 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.
Post Reply