SO I am trying to connect to my MySQL database using php in my html document. When I upload it to the web it does not seem to work! Here is my code:
<?php
    $con = mysql_connect("localhost","dbuser","dbpass");
    mysql_selectdb("DB",$con);
    $sql = "SELECT * FROM Table";
    $mydata = mysql_query($sql,$con);
Thanks in advance!
 
    