 |
 |
$dbuser='westernf_website';
$dbpass='WF123hh';
$dbtouse='westernf_website';
$mysql_link = mysql_pconnect("localhost", $dbuser , $dbpass);
mysql_select_db($dbtouse, $mysql_link);
$linkquery="SELECT name,link,comment from link order by name";
$links=mysql_query($linkquery,$mysql_link);
$numlinks=mysql_num_rows($links);
$halfway=round($numlinks/2);
?>
|
Information about links
The following links are not endorsed or hosted by Western Financial.
|
if ($links) {
$count=1;
while (list($name,$link,$comment)=mysql_fetch_row($links)) {
$comment=stripslashes($comment);
if ($count<=$halfway) {
if ($count==1) {print"\n\n";}
print"$name $link $comment | ";
}
else {
if ($count==$halfway+1) {print" \n | \n";}
print"$name $link $comment | ";
}
$count++;
}
print" | \n";
}
else {
print"There has been an error with the system: ";
echo mysql_error();
print" | ";
}
?>
|