Question: I build my query in PHP dynamically, and when I try to execute it, it fails. When I copy the query it generated and paste it into the mysql terminal and run it, it works fine. The error I get is "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '>' at line 1" for the following query:

```
UPDATE events SET event = 'orgo lecture', start = '2014-07-24 16:00:00' WHERE userID = 1 AND eventID = 5

```

The following is the code used to generate the query dynamically:

```
$query = "UPDATE events SET ";
$query_list = array();
if ($set_event) {

    $query_list[] = "event = '{$event}'";

}
if ($set_start) {

    $query_list[] = "start = '{$start}'";

}
if ($set_end) {

    $query_list[] = "end = '{$end}'";

}
$query_list_size = count($query_list);
for ($i = 0; $i < $query_list_size - 1; $i++) {

    $query .= $query_list[$i];
    $query .= ", ";

}
$query .= $query_list[$query_list_size - 1];
$query .= " WHERE userID = {$userID} AND eventID = {$eventID}";
echo $query .= "<br />";
$query_result = mysqli_query($connection, $query) or die(mysqli_error($connection));

```

Answer: 
for firephone adb connection you need amazon fire phone sdk provided by Amazon. Inside that sdk you find device driver for firephone then you can connect your fire phone to the system rest thing are same you need to go settings then enable developer option there.
Actually, in the FireOS 3.6.8, the developer options appear here:

Settings=> phone=> view your phone number=>select 7 times any option and it will show the developer options buttons at bottom 

If you select any option 7 times again (if the developer options button is shown) then it will hide the developer options button.

Hope this work for somebody else.