Announcements/News
$db_name = "netway";
$table_name = "news";
$connection = @mysql_connect("localhost", "website", "web1234") or die("Could not connect to MySQL");
$db = @mysql_select_db($db_name, $connection) or die("Could not access the database");
$sqlString = "SELECT * FROM $table_name";
$result = @mysql_query($sqlString, $connection) or die("Could not execute query");
if (mysql_num_rows($result) > 0) {
while ($row = mysql_fetch_array($result)) {
echo "";
if ($row["image1"] != "") {
echo " ";
}
if ($row["para1"] != "") {
echo "" . mysql_unescape_string(strval($row['para1'])) . " ";
}
}
} else {
echo "No news items at this time. ";
}
?>
Recent Press Releases
NetWay Offers Two-Way, High-Speed Satellite Internet
NetWay Broadband Sets New Standards
NetWay Refocuses for the Future
NetWay Puts a Stop to Viruses and Spam
require "../includes/ns_width_control.inc" ?>
|