<?php include_once 'dbMySql.php'; $con = new DB_con(); $table = "users"; $res = $con->select($table); if (isset($_POST['eliminar'])) { $id = $_POST['id']; $res = $con->delete($id); if ($res) { ?> <script> alert('Exito al eliminar'); window.location='usuarios.php' </script> <?php } else { ?> <script> alert('Error al eliminar'); window.location='usuarios.php' </script> <?php } } ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>PHP Data</title> <!-- Bootstrap --> <link href="css/bootstrap.min.css" rel="stylesheet">
<?php include_once 'dbMySql.php'; $con = new DB_con(); $res = $con->select(); ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>PHP Data Update and Delete Using OOP - By Cleartuts</title> <link rel="stylesheet" href="style4.css" type="text/css" /> <script type="text/javascript"> function edit_id(id) { if(confirm('Sure to edit this record ?')) { window.location='edit_data.php?edit_id='+id } } </script> </head> <body> <center> <div id="header"> <div id="content"> <label>PHP Data Update and Delete Using OOP - By Cleartuts</label> </div> </div> <div id="body"> <div id="content">
<?php include_once 'dbMySql.php'; $con = new DB_con(); $table = "car"; $table1 = "CUSTOMER"; $table2 = "RENTALS"; $res = $con->select($table); $res1 = $con->select($table1); $res2 = $con->select($table2); ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <link rel="stylesheet" href="style.css" type="text/css" /> <script type="text/javascript"> function edit_id(id) { if(confirm('Sure to change the prices ?')) { window.location='edit_data.php?edit_id='+id } } </script>