Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: feff3b17cc
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (23 sloc) 0.58 kb
<div id="content">
<?php
$query = $_SERVER["QUERY_STRING"];
//echo $query;
if($query == NULL){
$searchPageTitles = mysql_query ("SELECT * FROM `posts` WHERE post_url='index'",$GLOBALS['mysql_connect'] );
while($row = mysql_fetch_array($searchPageTitles)){
$postinput = $row["post_id"];
displayPostData($postinput);
}
}
else {
$searchPageTitles = mysql_query ("SELECT * FROM `posts`",$GLOBALS['mysql_connect'] );
while($row = mysql_fetch_array($searchPageTitles)){
if($query == $row["post_url"]){
$postinput = $row["post_id"];
displayPostData($postinput);
}
else {
}
}
}
?>
Jump to Line
Something went wrong with that request. Please try again.