Hi
I am going first to ask for patience as well as help I am trying to learn mySQL and phpmyadmin. I have written some code but have got the following error and I cannot see the problem wonder if someone would kindly help please.
Error message received: Parse error: syntax error, unexpected T_VARIABLE in /home/telsave/public_html/freudzstock/index.php on line 12
Possibly my old eyes have missed something.
Code as written
11.//Build Main Navigation menu and gather page data here
12.$sqlCommand = "SELECT id, linklabel FROM pages ORDER BY pageorder ASC",
13.$query=mysqli_query($myConnection, $sqlCommand) or die(mysqli_error());
14.
15.$menuDisplay="";
16.while($row=mysqli_fetch_array($query)){
17. $pid=$row["id"];
18. $linklabel=$row["linklabel"];
19.
20. $menuDisplay='a href=index.php?pid=' . $pid .'">' .$linklabel . '</a><br />';
21.
22.}
23.mysqli_free_result($query);
24.//mysqli_close($myConnection),
If anyone knows of any good training online courses can you let me know please
cheers
I am going first to ask for patience as well as help I am trying to learn mySQL and phpmyadmin. I have written some code but have got the following error and I cannot see the problem wonder if someone would kindly help please.
Error message received: Parse error: syntax error, unexpected T_VARIABLE in /home/telsave/public_html/freudzstock/index.php on line 12
Possibly my old eyes have missed something.
Code as written
11.//Build Main Navigation menu and gather page data here
12.$sqlCommand = "SELECT id, linklabel FROM pages ORDER BY pageorder ASC",
13.$query=mysqli_query($myConnection, $sqlCommand) or die(mysqli_error());
14.
15.$menuDisplay="";
16.while($row=mysqli_fetch_array($query)){
17. $pid=$row["id"];
18. $linklabel=$row["linklabel"];
19.
20. $menuDisplay='a href=index.php?pid=' . $pid .'">' .$linklabel . '</a><br />';
21.
22.}
23.mysqli_free_result($query);
24.//mysqli_close($myConnection),
If anyone knows of any good training online courses can you let me know please
cheers