I'm getting error when i try to refer index with string
The error:"Notice: Undefined index: subject_id in C:\Program Files\EasyPHP at the line 17"
$Pages=mysql_query("select * from pages where subject_id ={$Row["subject_id"]}",$Connection);
while($PageRow=mysql_fetch_array($Pages))
{
echo"<li>{$PageRow["menu_name"]}</li>";
}
But it works fine if i use the integer index instead,
echo"<li>{$Row[2]}</li>";
I've seen the same code in an example code and it works, is the problem with the MySQl database setting?