$student_id = $HTTP_COOKIE_VARS["StudentAlumni"]; /* Open the BLOG Database */ $username="iwtsgnf_bobcaspe"; $password="tet8Bimf"; $database="iwtsgnf_wp1"; mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "database failure"); /* Find the last post */ $query = "SELECT MAX(ID) from wp_posts WHERE 1"; $result=mysql_query($query); $max_post = mysql_result($result,0,'MAX(ID)'); /* Read the last post */ $query = "SELECT * from wp_posts WHERE ID=$max_post"; $result=mysql_query($query); $post_title = mysql_result($result,0,'post_title'); $post_datemodifed=mysql_result($result,0,'post_date'); $phpdate = strtotime( $post_datemodifed ); $mysqldate = date( 'm/d/y', $phpdate ); ?>
|
|||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||
© Copyright - The Caspe Group LLC 2008
|