title: Connecting to wamp server from different pc
body: <p>I have made a webpage. It makes use of mysql. It works fine if i access it from my system(localhost).I have uploaded my webpage on server for my friends to connect to it. However I am not able to connect it. I have gone through other questions posted here about the related topic. I tried to rectify the problem with the knowledge i have gathered reading the comments.<br>
  like putting the wamp server online, including this:</p>
  
  <pre><code>    &lt;Directory c:/wamp/www/&gt;
      Order Allow,Deny
      Allow from all
      Require all granted
      &lt;/Directory&gt;
  </code></pre>
  
  <p>however m still not able to connect it even from my pc after hosting it on the server. i have made use of a ftp software to transfer my files. my php code to connect to mysql:</p>
  
  <pre><code>mysql_connect('localhost:3306', $user, $pass) or die ("Connection Failed". mysql_error());
  </code></pre>