Could Not Connect" .mysql_error()); mysql_select_db('lsu',$link) or die(mysql_error()); $sql="Select * from contents where contentid='".mysql_real_escape_string($_REQUEST['id'])."'"; $result=mysql_query($sql) or die ("Invalid Query". mysql_error()); if(mysql_num_rows($result)>0) { $row = mysql_fetch_array($result); echo "
"; echo "

". ucwords($row['title'])."

"; echo "Posted by: ". strtoupper($row['uploader'])."

"; echo "
".$row['content']."
"; if(strlen($row['images'])>1) { $imgs=explode(",",$row['images']); echo "
"; echo "
"; foreach($imgs as $imgtmp) { echo ""; } echo "
"; } if(strlen(trim($row['fileattachment']))>5) { if(EndsWith($row['fileattachment'],".pdf")) { echo ""; } echo "

File Attachement :Click Here to Download the file attachment".""; } echo "


Upload date: ". date("m-d-y",strtotime($row['upload_date'])).""; } echo "

"; ?>