title: Connecting to a mysql Database via PHP?
body: <p>Ok, Ive been playing around with PHP and databases. Note, Im doing all my work on a webserver hosted by bluehost. 
  So I went into the cpanel and set up a database called gagalugc_stocks.
  I also setup a username (test) and a password (password) and added them to be able to control the databse. Below is my script in an attempt to connect to it, not it is also on the server.</p>
  
  <pre><code>&lt;?php
  $connect = mysql_connect('localhost','test','password');
  if(!$connect){die('Could not reach database!');}
  mysql_select_db("gagalugc_stocks", $connect)
  ?&gt;
  </code></pre>
  
  <p>-Thanks</p>
  
  <p>NOTE: The problem is that it can never reach the database.</p>