Exemplo n.º 1
0
//$obj->index();
//$obj->store();
?>
<html>
    <head>
        <title>List of Profile Picture</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="../../../Resource/bootstrap-3.3.6-dist/css/bootstrap.min.css">
    </head>
    <body>
        <div class="row">
            <div class="col-md-3"></div>
            <div class="col-md-6">
                <h1 class="text-success"><?php 
echo Message::flash();
?>
</h1>
            </div>
        </div>
        <div class="row">
            <div class="col-md-4"></div>
            <div class="col-md-6">
                <h1>List Of Picture</h1>
            </div>
            <div class="col-md-2"></div>
        </div>
        <div class="row">
            <div class="col-md-12"></div>
        </div>
        <div class="row">
Exemplo n.º 2
0
 public function delete($id = '')
 {
     if (is_null($id)) {
         return;
     }
     $con = mysql_connect("localhost", "root") or die("Mysql not connected");
     $dd = mysql_select_db('atomic_project');
     $q = "DELETE FROM `atomic_project`.`email` WHERE `email`.`id` = {$id}";
     if (mysql_query($q)) {
         Message::set('Data Deleted successfully');
     } else {
         Message::set('Here is an error.Data Not Deleted');
     }
     Utility::redirect('index.php');
     //        Utility::dd($result);
 }