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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:33:49+00:00 2026-06-03T16:33:49+00:00

I have this query: mysql_select_db(‘scanner’); $query = SELECT * FROM scanner.proxy ORDER BY RAND()

  • 0

I have this query:

mysql_select_db('scanner');
$query = "SELECT * FROM scanner.proxy ORDER BY RAND() LIMIT 20";
$result = mysql_query($query) or die(mysql_error());

it tells me:’scanner.proxy ‘ doesnt exist.. even though I do have it the table with the database. It is weird, cause my other queries work..but this one doesnt.

UPADTE:

Event when I put this:

$user='root';
            $user='root'
        $password='<removed_password>';
        $dbname = 'scanner';
        $host = 'localhost';
        $link = mysql_connect($host, $user, $password) or die (mysql_error());

mysql_select_db($dbname, $link) or die (mysql_error());

it gives me this…

Unknown database ‘scanner’

But I can see the scanner database in the phpmyadmin

Even when I type in phpmyadmin the sql statement
SHOW TABLES FROM ‘scanner’

it says it cant find scanner

  • 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-03T16:33:51+00:00Added an answer on June 3, 2026 at 4:33 pm

    make sure the user you use to connect has enough rights to query that table. Perhaps that table was created by another user.

    EDIT: Perhaps you need to grant access to scanner from a remote location. Running this sholud help on that.

    GRANT ALL ON scanner.* TO your_user@'IP_ofServer_where_PHP_runs' IDENTIFIED BY 'PASSWORD';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

say I have this $result = mysql_query('SELECT views FROM post ORDER BY views ASC');
I have a mysql query like this: $topicreplycount = mysql_query('SELECT COUNT(DISTINCT post_msg_id) FROM phpbb_attachments
I have this php query $sql = SELECT * FROM db; $query = mysql_query($sql);
So, I have this mysql query: SELECT member_id, text FROM review WHERE text !=
So i have this script: <?php $query = mysql_query( SELECT meetup AS text, id
I have written this query for retrieving data from mysql as below select FeedbackCode,EMailID,FeedbackDetail,
so I have this query: SELECT COUNT( * ) AS cnt FROM table WHERE
I have this code: if ($firearm != ) { $sql_result5 = mysql_query(SELECT icon FROM
I have this code in PHP $max=SELECT MAX(num) FROM info; $maxquery= mysql_query($max) or die
I have this code. <?php require('connection/conn.php'); mysql_select_db($db_name,$ligação); //$rsArticle = mysql_query(CALL get_article(1,518)); $rsArticle = mysql_query(SELECT

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.