Code Monkey home page Code Monkey logo

Comments (14)

nickfox avatar nickfox commented on July 28, 2024

Ok, thanks for bringing this up. Let me take a look into this. Please login to your database and tell me how many records you have in the gpslocations table.

thanks
Nick

from gpstracker.

shawhern avatar shawhern commented on July 28, 2024

I am currently running wamp server php version 5.5.12 and mysql version 5.6.17 phpmyadmin with version 4.1.14. The records are successfully import into database and updatelocations.php are work.
php
i am stuck in displaymap.php page whereby can't fetch the records from database w/o any error
php
i really appreciate u reply me because it is my part of my final year project
Thanks

from gpstracker.

nickfox avatar nickfox commented on July 28, 2024

Shawhern

Can you please look in dbconnect.php and make sure everything is correct there. What is the name of your database in phpMySql. Make sure it is the same as in dbconnect.php.

Also, please read this tutorial I wrote and also carefully read the comments.

https://www.websmithing.com/2014/04/21/how-to-set-up-the-gps-tracker-mysql-database-using-phpmyadmin/

n

from gpstracker.

shawhern avatar shawhern commented on July 28, 2024

I checked my dbconnect.php it is exactly the same i foloow the step inside the tutorial.

php

$dbhost = 'localhost';
$dbuser = 'gpstracker_user';
$dbpass = 'gpstracker';
$dbname = 'gpstracker';

php

but when i directly access to updatelocations.php it will have a '0' which mean i successfully execute the code and i check back to my database the record is added inside but something fishy is the time i open displaymap.php i cant have my record in the dropdown list. Does something need to configure like php extension or what

Thanks

from gpstracker.

shawhern avatar shawhern commented on July 28, 2024

u need to install this application into the phone and run the process in
order to track down the device

On Mon, Jun 23, 2014 at 2:15 PM, rebecca1986 [email protected]
wrote:

Can I use this to track someone else's phone. Without me physically having
to touch it.
On Jun 22, 2014 11:12 PM, "shawhern" [email protected] wrote:

I checked my dbconnect.php it is exactly the same i foloow the step
inside
the tutorial.

[image: php]
<
https://cloud.githubusercontent.com/assets/7955586/3354260/25827420-fa9d-11e3-80cc-535c373c9120.png>

$dbhost = 'localhost';
$dbuser = 'gpstracker_user';
$dbpass = 'gpstracker';
$dbname = 'gpstracker';

[image: php]
<
https://cloud.githubusercontent.com/assets/7955586/3353982/3c6e441a-fa94-11e3-9318-1931ecde073c.png>

but when i directly access to updatelocations.php it will have a '0'
which
mean i successfully execute the code and i check back to my database the
record is added inside but something fishy is the time i open
displaymap.php i cant have my record in the dropdown list. Does
something
need to configure like php extension or what

Thanks


Reply to this email directly or view it on GitHub
#11 (comment).


Reply to this email directly or view it on GitHub
#11 (comment).

from gpstracker.

nickfox avatar nickfox commented on July 28, 2024

shawherm. Instead of testing with displaymap.php directly. Try getroutes.php instead. That is used by displaymap. If getroutes.php fails to load routes, then you need to look in your web servers error logs. That is the next step.

n

from gpstracker.

shawhern avatar shawhern commented on July 28, 2024

php

i forget to attached in actually the record are there just the displaymap.php something fishy anywhere thanks for assist me alot

from gpstracker.

nickfox avatar nickfox commented on July 28, 2024

shawhern, look at the last image you posted. when you call getroutes.php, you should have ONLY json. For some reason you have a bunch of html garbage displaying. the br tag in the first line to the font tag about 10 lines down. the file SHOULD start with:

{ "routes"....

it looks like some html got into one of your rows in the database. carefully go look at the database and check ALL 27 of the rows carefully and see if one has html in it. then delete it. try that first.

n

from gpstracker.

shawhern avatar shawhern commented on July 28, 2024

I checked and found out still the same after that i actually delete most of the records and left 5 for testing still the result is the same and i also re-download the whole php source code and replace the old one

from gpstracker.

nickfox avatar nickfox commented on July 28, 2024

ok, i think i know what is is. go into getroutes.php and change

} while ($mysqli->next_result());

to this

} while ($mysqli->more_results() && $mysqli->next_result());

from gpstracker.

shawhern avatar shawhern commented on July 28, 2024

Thank you it is working fine now you are saving my life <3

from gpstracker.

nickfox avatar nickfox commented on July 28, 2024

good, thanks for bringing this to my attention.

Nick

from gpstracker.

shawhern avatar shawhern commented on July 28, 2024

Hi Nick,

Below is the link i put over the net yet the problem com find me again but this time in getroutes,php already got the result is it something wrong with this server?

http://rdykido.5gbfree.com/gpstracker/displaymap.php

from gpstracker.

nickfox avatar nickfox commented on July 28, 2024

You need to always be checking getroutes.php. Look at it now. Did you add a div to it?

<div style="text-align:center;">Fibernet Corp is a <a href="http://fiber.net" title="Utah hosting" rel="nofollow">Utah hosting</a> company.</div>

That page can only output json, you can not add any html to it. It's ok to style displaymap.php but not getroutes.php

from gpstracker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.