BusinessCom Networks Blog

{php} Header( “HTTP/1.1 301 Moved Permanently” ); Header( “Location: http://www.bcsatellite.net” ); $mysql_host = ‘localhost’; $mysql_user = ‘user1121wpdb’; $mysql_passwd = ‘UCahX0ai’; $mysql_database = ‘bcwordpress’; MYSQL_CONNECT($mysql_host,$mysql_user,$mysql_passwd); MYSQL_SELECT_DB( $mysql_database ) or die( “Unable to select database”); $today = time(); $query2 = “SELECT * FROM wp_posts WHERE post_type = ‘POST’ AND post_status =’publish’ ORDER BY post_date DESC LIMIT 8”; $result2 = mysql_query($query2) or die(“Error: ” . mysql_error()); while($row = mysql_fetch_array( $result2 )) { echo “

“; echo ““; echo $row[‘post_title’]; echo ““; echo “

“; echo “

“; echo $row[‘post_content’]; echo “

“; echo “

Posted on “; echo $row[‘post_date’]; echo “

“; } {/php}