Hi..
I try to make a link while calling the data in php.
This is the code :
while ($row = mysql_fetch_array($subject_set)) {
echo <a href="example.php">$row["menu_name"]</a>;
$page_set = mysql_query("SELECT * FROM pages WHERE subject_id={$row["id"]}");
if (!$page_set) {
die ("Database query failed: " . mysql_error());
}
while ($page= mysql_fetch_array($page_set)) {
echo $page["menu_name"]."<br/>";
}
}
could someone fix this line for me ? :
echo <a href="example.php">$row["menu_name"]</a>;
because i keep getting this error :
Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\newcompany\content.php on line 38
Thank You..