html/php SQL populated nav bar not

Wendy

New Member
this is my php code for populating my nav bar through an SQL query. I'm getting the following error:\[quote\] Parse error: syntax error, unexpected 'index' (T_STRING), expecting ',' or ';' in /home/hj016/public_html/SKSSTW/index1.php on line 102\[/quote\]\[code\]<?php$sqlCommand = "SELECT id, linklabel FROM pages "; $query = mysqli_query($myConnection, $sqlCommand) or die (mysqli_error()); while($row = mysqli_fetch_array($query )) { echo "<li><a href="http://stackoverflow.com/questions/15506125/index.php?pid=".$row['linklabel'].>".$row['linklabel']."</a></li>"; }?>\[/code\]Any help is appreciated.
 
Back
Top