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 8137653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:12:35+00:00 2026-06-06T11:12:35+00:00

this is privileges setting part User Host Type Privileges Grant username % database-specific ALL

  • 0

this is privileges setting part

User        Host         Type                Privileges      Grant

username    %            database-specific   ALL PRIVILEGES  No 
root        localhost    global              ALL PRIVILEGES  Yes    

this is mysql part

INSERT INTO `place` (`category`, `zone`, `budget`, `with`, `time`, `name`, `address`, `description`, `website`, `latitude`, `longitude`,`validation`) VALUES (1, 2, 3, 2, 3, 'placename', 'address', 'description', 'website', 100.0001, 33.0001, 0);

this is php part

$con = new mysqli('localhost','username');
$q = "INSERT INTO...";
$con->query($q);

if the sql inserted manually, it’s ok. but if i execute the php, it’s fail. unfortunately there is no error message come out. this begin after i re-set the privileges for user username

  • 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-06T11:12:39+00:00Added an answer on June 6, 2026 at 11:12 am

    My guess is that this is a syntax type error. Possible that you are using backticks (`) instead of single quotes (‘). You really need to figure out what the error is however. Try something like this:

        $con = new mysqli('localhost','username');
        $q = "INSERT INTO...";
        if (!$con->query($q)) {
          printf("Errormessage: %s\n", $con->error);
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This was resolved. The statement was in another part of the stored procedure. The
I have ejabberd set up using external_auth to authenticate against the user database of
I'm confused. I have program which I run as a non-administrator user. This program
So I have this Windows service created in VB.Net, and all it does is
I have a service to download file using credential domain\user but get this error
brew install postgresql Initialize... [~] initdb The files belonging to this database system will
I'm having some trouble setting up Apache on Ubuntu. I've been following this guide
Django can simply connect to its own MySQL server by setting HOST and PORT
I assigned a password to the root MySQL user in XAMPP some times ago.
Our organization has a very large database which Replicates to separate global servers. In

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.