hello,
I have started writing my own PHP script not too long ago. My script runs great however when i use error_reporting(E_ALL) function to check error, i got tons of notices, and i was hoping to correct them.
these are some of the notices:
Notice: Undefined index: address in /home/workinghabit/public_html/ab/admin.php on line 597
Notice: Undefined variable: i in /home/workinghabit/public_html/ab/admin.php on line 623
And if you look at line 597:
while ($a_row =mysql_fetch_array ($result) )
{
$a_row['title'] = stripslashes($a_row['title']);
$a_row['address'] = stripslashes($a_row['address']); // line 597
}
And this is line 623
$count = 0;
$query = "SELECT * FROM data_base WHERE pic_id = $a_row[id] LIMIT 1";
$output = mysql_query("$query",$link);
$i++; // this is line 623
I hope that somebody can help me with this problem.
thank you guys