really nice guide man it really helped me
but please make a change ;)
at the mysql_connect
delete all the above
and keep the $mysql_connect
after the ; at the end
type
mysql_select_db("mydb") or die(mysql_error());
then it will look like this
<?php
$mysql_connect["localhost","root","password of mysql if have"] or die(mysql_error());
mysql_select_db("mydb") or die(mysql_error());
?>