Cleaned up ugly HTML and renamed index.php to simplog.php

This commit is contained in:
2013-07-27 23:38:17 +02:00
parent 40de6d2290
commit e886d4f461
10 changed files with 82 additions and 37 deletions

View File

@@ -3,7 +3,10 @@
// Include config file
require "../includes/config.php";
require "../includes/dbconnect.php";
require "../includes/htmlcode.php";
start_html("Edit post");
print "<h1>Edit post</h1>";
$query = "SELECT * FROM blog WHERE date='$_GET[date]' AND title='$_GET[title]'";
$result = mysql_query($query)
@@ -24,13 +27,15 @@ Text: <br />
<textarea cols='50' rows='10' name='post'>$line[posttext]</textarea>
<br />
<input type='submit' value='Update post'>
</form>";
</form>
<hr width='50%' align='left'>
<br />";
}
// Close MySQL link
mysql_free_result($result);
mysql_close($link);
require "../includes/dbclose.php";
end_html();
?>