Well i'm an absolute beginner considering PHP/HMTL programing and I'm stuck with these problem for days now.
First i've created Mysql table containing following columns (id, Name, Surname, Telephone_number, Email). Then I've successfully created form for reading table. Now i want to read and later edit a specific row using following code:
41 <?php
42 $con = mysql_connect("localhost","username","password");
43 mysql_select_db("database", $con);
44 $id=$_GET["id"];
45 $result = mysql_query("SELECT * FROM Table where id='$id'");
46 $row = mysql_fetch_array($result);
47 ?>
But all I get is the following error: Notice: Undefined index: id in C:\xampp\htdocs\contacts_edit.php on line 44
Any help will be greatly appreciated!