Bueno primero deberías de leer siempre el manual de php de su página oficial
Acá esta un ejemplo para crear tu cadena de conexión
Código PHP:
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
Localhost es la dirección IP de tu website, mysql_user sería el usuario que mencionas y mysql_password sería el pass de esa cuenta.
Ahora deberías de investigar un poco como hacer llamadas a librerías y como cargar los datos de tu base de datos:
Código PHP:
<?php
include("connectionDB.php");
// connect to db
$conectar = connect();
$queEmp = "SELECT * FROM estudiante";
$resEmp = mysql_query($queEmp) or die(mysql_error());
$totEmp = mysql_num_rows($resEmp);
if ($totEmp> 0) {
while ($rowEmp = mysql_fetch_assoc($resEmp)) {
$nombre1 = $rowEmp['nombre1'];
$nombre2 = $rowEmp['nombre2'];
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
Emergency Contact and Medical Information
</title>
<!-- Meta Tags -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</style>
</head>
<body>
<input name="nombre1" type="text" value="<?php echo $nombre1?>" />
<input name="nombre2" type="text" value="<?php echo $nombre2?>" />
</body>
</html>
Y un consejo sano, investiga!!!!! En la web hay una infinidad de este tipo de ejemplos.
Saludos