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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:10:15+00:00 2026-05-15T04:10:15+00:00

I just moved my website to a new server (Shared to VPS) I expected

  • 0

I just moved my website to a new server (Shared to VPS)

I expected errors, and the only error that is really puzzling me is this SQL statement.

echo mysql_query("SELECT COUNT(*) FROM users_online_now")

This returns nothing! And if I try the mysql_num_rows, it returns

mysql_num_rows(): supplied argument is not a valid MySQL result resource..

If I query another table though eg:

echo mysql_query("SELECT COUNT(*) FROM users")

It works fine.

I am guessing it’s something to do with the naming of the table? It worked fine on my previous host, is there some setting I should modify?

Update:
Figured out. The server is still going thru DNS changes, and the mySQL is completely messed up. DNS has finally updated!

  • 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-05-15T04:10:16+00:00Added an answer on May 15, 2026 at 4:10 am

    Try to find out what error you get by adding or die like this:

    mysql_query("SELECT COUNT(*) FROM `users_online_now`") or die(mysql_error());
    

    Also make sure that you have already connected to mysql database successfully, see these functions for that:

    mysql_connect
    mysql_select_db

    Note: In names you should use backtick character (`) rather than single quote.

    Update:

    If you have a MySQL Database that has a table with a damaged Index, you may get an error:

     Incorrect file format [table name]
    

    Here is the possible solution.

    .

    More threads on the problem:

    http://forums.mysql.com/read.php?21,18436,18436

    http://www.linuxquestions.org/questions/linux-software-2/mysql-crash-on-startup-incorrect-file-format-host-464422/

    http://www.devcomments.com/SQL-Error-incorrect-file-format-to138833.htm

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

Sidebar

Related Questions

This morning I moved a .NET website from our local server to live (not
I'm trying to create a website for myself and just ran into this issue:
I have been implementing AES onto my website for security and I have ran
I recently moved my development to a Windows 7 machine, and am having all
I have a WCF service that lives side-by-side with an MVC2 web site. I'd
I've been searching on this but can't seem to find an exact answer (most
I'm trying to figure out what the best way would be to set up
I'm trying to build custom AuthorizeAttribute, so in my Core project (a class library)
Please save my skin. http://clubentertainment.ie/c/art-perf/embed_example.html The above link should load in Firefox, doesn't load
I have several draggables on my page. When I start dragging one, it moves

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.