Giter VIP home page Giter VIP logo

Comments (5)

bjorn2404 avatar bjorn2404 commented on July 24, 2024

You need to select the database before doing the query. You could use mysql_select_db($db,$dbhandle); and set the $db variable above with your other settings or you could use a mysqli connection if your server supports it.

from jquery-store-locator-plugin.

 avatar commented on July 24, 2024

Ok great! I was able to connect, thank you! I'm also a little confused because on your blog it says to just set the "dataLocations" setting to the php file, but in the Json example you're setting it to a location.json file. How are you pulling the data into the json file that the php file renders?

from jquery-store-locator-plugin.

bjorn2404 avatar bjorn2404 commented on July 24, 2024

I just copied the source from the browser and pasted it into a file for the example. If you read above the screenshot: "The JSON file included in the GitHub repository is just there as an example. The file was generated via PHP from a MySQL database."

from jquery-store-locator-plugin.

bjorn2404 avatar bjorn2404 commented on July 24, 2024

Also, if you've downloaded 1.4.9 be sure to use name instead of locname in your locations table.

from jquery-store-locator-plugin.

 avatar commented on July 24, 2024

Ok thanks!

from jquery-store-locator-plugin.

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.