-1

I'm kinda new to the web development, so I don't know if I'm posting in the right place. But I’ve started putting together a website. But when I try to run this Query(see the Picture) I get the following message.

Parse error: syntax error, unexpected "$q" (T_VARIABLE) in my location

Do you have any idea what the problem could be? I am trying to publish the Header of my table in MySQL to the content of my page. (I have no problem connecting or wring to my database. But I seem to have a problem at line 6.

Thanks a lot!

Lokk at line 6

3 Answers3

0

Correct your code,

include statement in your code dont have ;

include('config\setup.php');

Replace this line in your code and check.

Rahul
  • 18,271
  • 7
  • 41
  • 60
0

try ";" at end of every include statement (OR php statement you are using)

e.g.- 
<?php
include('config/setup.php'); 
?>
Brijal Savaliya
  • 1,101
  • 9
  • 19
0

In PHP every line should be terminate by ';' So whenever you are geting such kind of error just check your previous line. Here you are missing terminate at very 1st line.

include('config\setup.php');

Add this.

Jyoti mishra
  • 597
  • 4
  • 16