Skip to content

Instantly share code, notes, and snippets.

Created December 22, 2022 20:15
What would you like to do?
The page that the database connection is done
$db=new mysqli("localhost", "root", "", "gd_test");
Define("SITE_NAME", "");
Define("SITE_SLUG", "Taking action on abuse");
function get_post($index){
return $index;
function set_alert($msg, $alert_type="danger"){
function get_alert(){
if(isset($_SESSION['msg']) && $_SESSION['msg']!=""){
<div class="alert alert-<?=$_SESSION['alert_type']?>"><?=$_SESSION['msg']?></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment