title: mysql connect - should username/password be hardcoded?
body: <p>I'm an iPhone developer, and I've just started out with PHP &amp; mysql (making websites for others, and web services for my apps).</p>
  
  <p>Whenever I hardcoded my username and password into a PHP file to connect to the database I felt a bit odd. Example:</p>
  
  <pre><code>$con = mysql_connect('localhost:8888','root','password');
  </code></pre>
  
  <p>I find this slightly awkward if I ever have to show code to anybody.</p>
  
  <ul>
  <li>Is this secure or good practice?</li>
  <li>Is there another way I should be connecting to the database?</li>
  </ul>
  
  <p>I would be very grateful for any advice related to this issue.</p>