Notice: Undefined index: id in C:\xampp\htdocs\Guttz\Edit.php on line 2
<?php
$id = $_GET['id'];
$host = "localhost";
$user = "root";
$pass = "";
$db = "guttz";
$link = mysqli_connect($host, $user, $pass, $db);
$query ="SELECT * FROM designers WHERE id ='$id'";
$result = mysqli_query($link, $query);
$row = mysqli_fetch_array($result) or die (mysqli_error($link));
mysqli_close($link);
?>
The get and the post has been the problem . How can I store and save id in session. What is the codes for it ? [attachment=1791:Edit.php]