Jump to content

Linking Html With Php To Mysql


emesem5

Recommended Posts

Hey,

 

I'm new to all of this, but I'm trying to link my HTML file to SQL to get coordinates for a Maps API.

 

I've got a map poputlating, but i need to manually put in the data. I want it to populate automatically when opened.

 

so far i have my HTML reading:

 

 

<script type="text/javascript">

var locations = [

['address 1', Lat, Long, 1],

['address 2', lat, long, 1],

];

 

My sql DB has the info set out in the same format, i just dont know how to link the HTML with SQL.

 

Would anyone know how to script what I want to link the HTML to SQL with a PHP with the format that I need?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.