PHP Link to RU database 
(Replaces code at https://php.radford.edu/~mysql-php/create.html) 

<?
// open connection to database
$link = mysql_connect('localhost', 'login', 'password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}

mysql_select_db('login', $link);

$query = " SELECT * from table where field = 'label' order by whateverlabel";

// italicized section above is optional

$result = mysql_query($query);

While($row = mysql_fetch_row($result))

{?>

<p><? Echo $row[0];?><br /> <? echo $row[1];?> <br />
<? echo $row[2];?> <br /> <? echo $row[3]; ?> <br />
</p>

<?}

Mysql_close($link);

?>