view2.php is an extension or displaying the rest of my code in another file from the other file im targeting the certain id then update it from view2.php into update_info.php but ill get this error
Notice: Undefined variable: id in . . . .
but in my database it was updated just didnt display into my webpage to shorten it
from view2.php into update_info.php back to view2.php after update but ill get this error
Notice: Undefined variable: id in . . . .
view2.php
<?php
include 'dbconfig.php';
$id = $_GET['id'];
$sql = "SELECT * FROM info WHERE id = '$id'";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
?>
update_info.php
$sql = "SELECT id FROM info";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
"SOME CODES HERE"
Header("Location: view2.php?=".$row['id']);