title: A link to the server could not be established Mysql
body: <p>HI guys im having issues connecting to my Database `Warning: mysql_query(): Access denied for user 'peace4love'@'localhost' (using password: NO) in /home/peace4love/public_html/ivegotdiamonds.com/wp-content/plugins/hsquare/config-new.php on line 14</p>
  
  <p>Warning: mysql_query(): A link to the server could not be established in /home/peace4love/public_html/ivegotdiamonds.com/wp-content/plugins/hsquare/config-new.php on line 14
  Error, query failed`  here is the code:</p>
  
  <pre><code>&lt;?php
  require_once(ABSPATH."/lib/myplug.php");
  $objMem = new myPlug();
  
  $table_name = "h_config";
  $addme=@$_POST["addme"];
  global $wpdb;
  
  $act=$_REQUEST["act"];
  if($act=="upd")
  {
      $recid=$_REQUEST["id"];
      $sSQL="select * from ".$table_name." where config_id=$recid";
      $result = mysql_query($sSQL) or die ('Error, query failed');
      if (mysql_num_rows($result) &gt; 0 )
      {
          if($row = mysql_fetch_assoc($result))
          {
              $id = $row['config_id'];
              $c_key  = $row['c_key'];
              $c_value = $row['c_value'];
              $c_index = $row['c_index'];
              $c_record = $row['c_record'];
              $c_record_2 = $row['c_record_2'];
              $c_record_3 = $row['c_record_3'];
              $c_record_4 = $row['c_record_4'];
              $btn       = "Update Record";
              $hidval    = 32;
          }
      }
  }
  else
  {
      $btn ="Add New Record";
      $c_key  = "";
      $c_value = "";
      $c_index = "";
      $c_record = "";
      $c_record_2 = "";
      $c_record_3 = "";
      $c_record_4 = "";
      $btn = "Add New Record";
      $hidval    = 31;
  }
  </code></pre>
  
  <p>?></p>