query("INSERT INTO `why_join` (`id`, `timestamp`, `image`, `title`, `content`) VALUES (NULL, CURRENT_TIMESTAMP, '".$image['file_name']."', '".$_POST['title']."', '".$_POST['content']."')"); echo ''; } else { echo ''; } } if($_GET['type'] == 'delete') { $con->query("DELETE FROM why_join where id = '".$_GET['id']."'"); echo ''; } ?>

Add

List

query("SELECT * FROM why_join"); while($g = $get->fetch_assoc()) { echo ''; } ?>
# Title Content Delete
'.$i++.' '.ucwords($g['title']).' '.$g['content'].'