-1

i am trying to execute the query below using wampserver in php.

$query = "SELECT Servername,IPAddress,LiveStatus,
                 Location,BranchType,Entity 
          FROM t_applicationstatus 
          Where Entity='BAGI'";


$result=mysqli_query($con,$query);

it is giving me the above error.

RiggsFolly
  • 89,708
  • 20
  • 100
  • 143
Amit
  • 1
  • 2
  • 9

1 Answers1

1

It does not like Servername that may be a declared value somewhere else.
That error is usually associated with an array
Put the accent marks (`) around the field name to distinguish it as a column.

Misunderstood
  • 4,529
  • 1
  • 14
  • 21