Latest News for ThePoeticLink.com"; print "

To Write to me, simply send mail to: "; print "Webmaster@ThePoeticLink.com"; print " I read all of your comments and suggestions... don't be shy!


"; $result = mysqli_query($con,"SELECT * FROM news order by n_date desc "); $totitems = mysqli_num_rows($result); if ($limit == "") $limit = 0; else $mastersort = $limitsort; $result = mysqli_query($con,"SELECT * FROM news order by n_date desc limit $limit, $maxdisplaylimit"); if ($row = mysqli_fetch_array($result)) { $query4 = mysqli_query($con,"select max(n_date) from news"); $query_data4 = mysqli_fetch_row($query4); $lastnews= $query_data4[0]; $update1 = mysqli_query($con,"update users set u_lastnews='$lastnews' where u_id='".$_SERVER['PHP_AUTH_USER']."'"); show_ranges($limit, $maxdisplaylimit, $totitems, $mastersort, "News", "news.php3", ""); print "

"; do { $news = $row["n_news"]; $news2 = str_replace(13,"
",$news); $lastnews= $row["n_date"]; $lny = substr($lastnews,0,4); $lnm = substr($lastnews,5,2); $lnd = substr($lastnews,8,2); $lnh = substr($lastnews,11,2); $lnmn = substr($lastnews,14,2); $lns= substr($lastnews,17,2); $lastnews = date("n/j/Y g:ia",mktime($lnh,$lnmn,$lns,$lnm,$lnd,$lny)); print "News Entry Date: $lastnews

"; print "$news2

"; include "return_tag.html"; } while($row = mysqli_fetch_array($result)); show_ranges($limit, $maxdisplaylimit, $totitems, $mastersort, "News", "news.php3", ""); } else {print "Sorry, no news entries were found!"; include "return_tag.html"; } ?>