Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- //?????? ?? ??? ??????
- $db_host ="mysql.hostinger.co.il";
- $db_username ="u440675753_tryha";
- $db_pass = "test123";
- $db_connect = "u440675753_tryha";
- $_SESSION['id1']=$id;
- $connect = mysqli_connect($db_host, $db_username, $db_pass)or die ("pro");
- mysqli_select_db($connect, $db_connect) or die ("prob");
- $select= mysqli_query($connect, "SELECT * FROM information ") or die(mysqli_error($connect)); //???? ??? ?????? information ????? name ?????? ???? ?????? ??????
- while ($row = mysqli_fetch_array($select)){
- echo $row ['id'].": " ;
- echo $row ['name']." ";
- echo $row ['Email']." ";
- echo $row ['password']." ";
- echo "<br> ";
- }
- echo $id;
- if( isset($_SESSION['id1']['del']) )
- {
- $id = $_SESSION['id1'];
- $de= "DELETE FROM information WHERE id='$id'";
- $res= mysqli_query($de) or die("Failed".mysqli_error());
- }
- ?>
- <html>
- <body>
- select ID to remove
- <form action="admin.php">
- ID: <input type="text" name="FirstName" id="id1" <br>
- <input type="submit" value="Submit">
- </form>
- </body>
- </html>
Add Comment
Please, Sign In to add comment