Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8858035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:44:04+00:00 2026-06-14T14:44:04+00:00

PLEASE CLOSE THIS I HAVE FIGURED OUT THE ————MY PROBLEM—————————————- mysql_select_db("members") or die(mysql_error()); echo

  • 0

PLEASE CLOSE THIS I HAVE FIGURED OUT THE
————MY PROBLEM—————————————-
mysql_select_db("members") or die(mysql_error());
echo "Database Found!
";

—————-SOLUTION——————————————————————

mysql_select_db("a2670376_Pass") or die(mysql_error());
echo "Database Found!
";


Here’s my script

    <?php 
$ud_ID = $_REQUEST["ID"];
$ud_firstname = $_POST["ud_firstname"];
$ud_surname = $_POST["ud_surname"];
$ud_FBID = $_POST["ud_FBID"];
$ud_IMG = $_POST["ud_IMG"];

mysql_connect('mysql13.000webhost.com'… 'a2670376_Users', 'Password') or die(mysql_error());
echo "MySQL Connection Established! <br>";

mysql_select_db("members") or die(mysql_error());
echo "Database Found! <br>";

$query = "UPDATE stokesley_members SET firstname = '$ud_firstname', surname =    '$ud_surname', 
FBID = '$ud_FBID' WHERE ID = '$ud_ID'";

$res = mysql_query($query);

if ($res)
echo "<p>Record Updated<p>";
else
echo "Problem updating record. MySQL Error: " . mysql_error();
?>

<form action="update.php" method="post">
<input type="hidden" name="ID" value="<?=$UID;?>">
IMGNU: <input type="text" name="ud_img" value="<?=$IMGNU;?>"><br>
First Name: <input type="text" name="ud_firstname" value="<?=$firstname?>"><br>
Last Name: <input type="text" name="ud_surname" value="<?=$surname?>"><br>
FB: <input type="text" name="ud_FBID" value="<?=$FBID?>"><br>
<input type="Submit">
</form>

Here’s my error
MySQL Connection Established!
Access denied for user ‘a2670376_Users’@’10.1.1.40’ to database ‘members’
I don’t know what the 10.1.1.40 is about though I have tried changing it to
("mysql13.000webhost.com", "a2670376_Users", "Password")
and still the same thing
now this confuses me a lot so I’m not even sure there is an error but i think there is cause if there was no error the script would show
could this error be caused because I haven’t made the file update.php yet?
i have worked out many bugs in this already but cant seem to get this one out please help me you will be a lifesaver and give me credit for noobish script I’m only 13

I don’t need to grant rights because I already have rights I have a file named connect.php it connects the register and login scripts that I have that works fine but this wont..

http://fni.site11.com/edit.php is the page I am working on

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:44:05+00:00Added an answer on June 14, 2026 at 2:44 pm

    first of all switch from mysql_ to mysqli_ or PDO they are more reliable.
    Then, check the spelling (host, user and password) and the case ! password and username are case sensitive.

    Be sure that user a2670376_Users has privilege for selecting, updating and inserting

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a program that relates to a database. I start out my program
Note, I have found the solution to my problem. Please see below. I'm converting
I have written this function in SQL and I can't figure out why but
My question is rather subjective, moderators please do not close it, for I want
Possible Duplicate: Close mysql connection (PHP) Please help me, I not know where add
Can someone please explain how to understand a logcat from an android force close.
please have a look at the following code import java.util.ArrayList; import java.util.List; public class
Please help me somebody to convert unicodestring into string This is how i am
Please i need help, this code below works fine on my localhost, php5.3+ but
I have the most annoying problem with Visual Studio 2012 and WPF I was

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.