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

  • Home
  • SEARCH
  • 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 8729271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:48:12+00:00 2026-06-13T08:48:12+00:00

When certain pages load on my site I have a script that will add

  • 0

When certain pages load on my site I have a script that will add points to the users table in the points row. Here is my script

<?php

session_start();
$db = mysqli_connect("hostname", "username", "password", "database");

$username = $_SESSION['username']; 

mysqli_query($db, 'UPDATE login_users SET points_column=points_column+1 WHERE username=$username');


?>

I have already checked the host name, username and password details and everything is correct but I keep getting this error

Warning: mysqli_connect() [function.mysqli-connect]: (28000/1045): Access denied for user ‘a5950626_jlf’@’10.1.1.34’ (using password: YES) in /home/a5950626/public_html/application/home.php on line 5

PHP Error Message

Warning: mysqli_query() expects parameter 1 to be mysqli, boolean
given in /home/a5950626/public_html/application/home.php on line 9

Any ideas what the problem could be or how to fix it? Thanks!

  • 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-13T08:48:14+00:00Added an answer on June 13, 2026 at 8:48 am

    Well, the error message clearly says that access is denied, so either hostname/username/password/database is wrong or the user doesn’t have the required permissions.

    How to set up permissions, in this example all:

    GRANT ALL PRIVILEGES ON database_name TO user@host IDENTIFIED BY 'password';
    FLUSH PRIVILEGES;
    

    Host is where you’d be connecting from. % can be used as a wildchar. See more detailed examples at the documentation. (you can see your user + host in the error message, btw)

    As a side note, you should check that connection was successful before trying to use the database link in a query.

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

Sidebar

Related Questions

So I have site list on certain pages that basically just have links to
I have a site that displays other sites through an iframe on certain pages.
I've noticed that many pages with heavy javascript load certain files at the end
I've found that the Like Box app for Facebook will not recognise certain pages
On a Linux, Apache, PHP site, I need to make certain that a subdirectory
I'm developing a site that sends email notifications to users after certain events/user actions
I have encountered a strange error message when I try to load certain pages
I have a bunch of pages on a site for which the actions that
I have disallowed certain pages using robots.txt for all crawlers. Do I have to
I need to make a false referrer to certain pages using PHP. In my

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.