| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 7 |
| Ratio | 100 % |
| 1 | <? |
||
| 20 | public static function getDistanceByFields($date, $type, $distance) |
||
| 21 | { |
||
| 22 | $type = self::escape($type); |
||
| 23 | $distance = self::escape($distance); |
||
| 24 | $query = "SELECT * FROM `jpemeric_stream`.`distance` WHERE `date` = '{$date}' && `type` = '{$type}' && `distance` = '{$distance}' LIMIT 1"; |
||
| 25 | return self::run_row_query($query); |
||
| 26 | } |
||
| 27 | |||
| 28 | } |
Short opening tags are disabled in PHP’s default configuration. In such a case, all content of this file is output verbatim to the browser without being parsed, or executed.
As a precaution to avoid these problems better use the long opening tag
<?php.