skip to Main Content

I have made a website for my college. As long as I had been running it on localhost (using XAMPP) to run the php code and the databases, all was working fine. But when I deploy the site on server it gives the following error

Fatal error: Class ‘mysqli’ not found in /home/mietjmu/public_html/crie/index.php on line 55.

I also tried to search on the internet but all i was getting is that to open Easyapache from the WHM but was not able to find that option either. The server is being hosted by godaddy.com

2

Answers


  1. You probably have an error in the database code. It would be easier for someone to help you if you add the index.php file that gives this error, so we can figure out the error.

    Login or Signup to reply.
  2. check is mysql librery present or not :

        if (!function_exists('mysqli_init') && !extension_loaded('mysqli')) {
          echo 'you dont have';
         } else {
          echo 'you have!';
         }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search