Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9209629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:53:20+00:00 2026-06-18T00:53:20+00:00

I am keep getting following error when executing php code Parse error: syntax error,

  • 0

I am keep getting following error when executing php code

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/a9440109/public_html/gps_list.php on line 37

I have tried to define character encoding but still getting the error. Please let me know what I am doing wrong:

 <?php
 header('Content-type: text/html; charset=utf-8');
 //connect to the database

 include ('gps_db_connect.php');

 $query = "SELECT * from gps WHERE server_time > '20130130'";
 $result = mysqli_query($connection, $query) or die(' Error getting data');
 echo $query;


 $row_count = 0;
 $color_switch = 0;
 $td_size=1;
 $td_font='Verdana'';

 echo "<table border = 1 WIDTH=100% CELLSPACING=0 CELLPADDING=1 >";
 echo "<tr> <th>Count</th><th>User/Device ID</th><th>Longitude, Latitude</th>        <th></th> <th> Speed</th>  <th> Direction </th> <th> GPS Date/Time</th> <th> Server Time </th></tr>";
 while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
 if ( $color_switch == 0 ) {
     $bg_color="#FFFFFF";

     $color_switch = 1;
  }

 else {

     $bg_color="#D8D8D8";
         $color_switch = 0;
         }
     $row_count++;
     echo "<tr><td bgcolor=$bg_color> <font size=$td_size face=$td_font>";
     echo $row_count;

         echo "</td><td bgcolor=$bg_color>  <font size=$td_size face=$td_font> &nbsp";
         echo $row['gps_user'];

     echo "</td><td bgcolor=$bg_color>  <font size=$td_size face=$td_font> &nbsp";
     echo $row['gps_lng'].','.$row['gps_lat'];


     echo "</td></tr>";


    }
 echo "</table>";

 ?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:53:22+00:00Added an answer on June 18, 2026 at 12:53 am
    $td_font='Verdana'';
    

    has an extra quote at the end.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting the following error: Parse error: syntax error, unexpected T_SL in /home/a4999406/public_html/willingLog.html
I keep getting the following error in my log PHP Parse error: syntax error,
I'm trying to get http://www.gelens.org/code/gevent-websocket/ running and keep getting the following error. socket_id=1 already
I keep getting an error with the following bit of code. It is probably
With the following code, I keep getting error C2535 when I compile. It's complaining
I keep getting the following error with the following code: Error: No exports were
Not sure what is wrong with this code. I keep getting the following error:
I want to deserialize the following json data https://mtgox.com/code/data/getDepth.php . I keep getting an
I keep getting the following error when trying to parse some html using BeautifulSoup:
I keep getting the following error message when I run my code in debug.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.