title: cannot connect to server using php
body: <pre><code>&lt;?php
  $host=&quot;localhost&quot;;
  $user=&quot;user&quot;;
  $password=&quot;debashree&quot;;
  $connect=mysqli_connect($host,$user,$password);
  if ($connect-&gt;connect_error) {
   die(&quot;connection_aborted&quot;.$connect-&gt;connect_error);
  }
  echo &quot;connected succesfully&quot;;
  </code></pre>
  <p>This is the mysql connection php script. It is constantly showing the error of</p>
  <blockquote>
  <p>Warning: mysqli_connect(): (HY000/1045): Access denied for user 'user'@'localhost' (using password: YES) in C:\xampp\htdocs\index.php on line 6</p>
  <p>Notice: Trying to get property of non-object in C:\xampp\htdocs\index.php on line 7
  connected successfully</p>
  </blockquote>
  <p>I cannot understand please help me?</p>