php - looping on mysql query -


I am busy with a script to load mysql data in php variablen.

My database is GPS tracking, coordinates in a table with different users and GPS in this database. Each GPS update has its own ID ... For example, if the user will post the same GPS location which will be ID 1, but when user B will post their location 5 minutes later it is UDA 2, when the user after 10 minutes They keep their place again, this will be ID 3.

Now the question is

This is my table structure and my code:

  // defined to click on the selection table $ posities = mysqli_query ($ Raw, "devices located on INNER position on posts from selection. Device_ID = Status by position.id position. DESC"); // ANROPAN $ in the Dental Tables $$$ query = mysqli_query ($ RAW, "through the devices select number (ID)"); $ Line = mysqli_fetch_row ($ query); $ Aantalgb = $ line [0]; Mysqli_free_result ($ query); Akho "& lt; Table border = '1' & gt; & lt; tr & gt; & lt; th & gt; ID & lt; / th & gt; & lt; th & gt; Name & lt; / th & Gt; & lt; th & gt; Tijd & lt; / th> & lt; th & gt; Late & lt; / th & gt; & lt; th & gt; Loan & lt; / th & gt; ;  Snelheid   ; While ($ pos = mysqli_fetch_array ($ posities)) {echo "<<"; Echo "& lt; td & gt;" . $ Pos ['device_id']. "& Lt; / td & gt;"; Echo "& lt; td & gt;" . $ Pos ['name'] "& lt; / td> gt; Echo "& lt; td & gt;" . $ Pos ['time'] "& lt; / td & gt;"; Echo "& lt; td & gt;" . $ Pos ['Latitude'] "& lt; / td & gt;"; Echo "& lt; td & gt;" . $ Pos ['longitude'] "& lt; / td & gt;"; Echo "& lt; td & gt;" . $ Position ['speed'] "& lt; / td & gt;"; Echo "& lt; / tr & gt;"; } Resonates "& lt; / table & gt;";  

Thanks!


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -