diff --git a/changepost.php b/changepost.php new file mode 100644 index 0000000..91afcf8 --- /dev/null +++ b/changepost.php @@ -0,0 +1,37 @@ + \ No newline at end of file diff --git a/db-connector.php b/db-connector.php new file mode 100644 index 0000000..93eec7c --- /dev/null +++ b/db-connector.php @@ -0,0 +1,9 @@ + diff --git a/delete.php b/delete.php new file mode 100644 index 0000000..1b763cc --- /dev/null +++ b/delete.php @@ -0,0 +1,17 @@ + \ No newline at end of file diff --git a/editpost.php b/editpost.php new file mode 100644 index 0000000..ff15308 --- /dev/null +++ b/editpost.php @@ -0,0 +1,173 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +'; + $cont = $row['content']; + if( strlen($cont)< 250){ + echo substr($cont, 0, 250); + } else { + echo substr($cont, 0, 250) . '...'; + + } + echo '
'; + echo ''; + echo ''; + $query_getPost = "SELECT * FROM post_content WHERE id=$iPost"; + $hasil_getPost = mysql_query($query_getPost, $db) or die(mysql_error()); + while ($data = mysql_fetch_assoc($hasil_getPost)){ + echo $data['content']; + } + echo '
'; + echo '