connect to mysql database using php on different port
<p>my connection string is:</p>

<pre><code>    $connection = mysql_connect("localhost", "root", "") or die("Could Not Connect to DB: ".mysql_error());
</code></pre>

<p>but on my computer i have installed IIS server first so localhost:80 is reserved by it so I changed my port to 8080 changing httpd.conf file in apache folder.</p>

<p>Now what should I change in connection string to connect to my database.
I am using XAMPP .</p>

<p>should I tried writing these:
1:   </p>

<pre><code>  $connection = mysql_connect("localhost:8080", "root", "") or  die("Could Not Connect to DB: ".mysql_error());
</code></pre>

<p>2:</p>

<pre><code>$connection = mysql_connect("localhost,8080", "root", "") or    die("Could Not Connect to DB: ".mysql_error());
</code></pre>

<p>But Not working Help please.
Thank You</p>