Jump to content


Photo

Linking Html With Php To Mysql

html php sql google maps api

  • Please log in to reply
3 replies to this topic

#1 emesem5

emesem5

    Newbie

  • New Members
  • Pip
  • 2 posts

Posted 15 November 2012 - 07:42 PM

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?

#2 Muddy_Funster

Muddy_Funster

    Advanced Member

  • Members
  • PipPipPip
  • 2,993 posts

Posted 16 November 2012 - 03:41 AM

the readme for the API should give instructions for what you are asking to do. as each and every API is different, and the only code you gave is javascript, we heve nothing to work with to help you. If you want code written for you stick a thread in the freelancing section and someone should contact you with a price.
A simple password hash :

function makePass($word=''){
  $dbSalt = '$2a$07$'.substr(hash('whirlpool',$word),0,22);
  $dbPass = crypt($word, $dbSalt);
 return substr($dbPass,12);
}



My SQL/PHP Blog

#3 emesem5

emesem5

    Newbie

  • New Members
  • Pip
  • 2 posts

Posted 17 November 2012 - 02:00 AM

My Bad,

I've got the .php file outputting xml, and also another .php file outputting .csv from the SQL database.

i just cant figure out how to link the .php file to my HTML with the variable "location".

#4 jcbones

jcbones

    Advanced Member

  • Gurus
  • 2,573 posts
  • LocationNorth Carolina

Posted 17 November 2012 - 08:36 AM

We can't either, without any code. For we are not sitting there looking over your shoulder. So, if you want any help, you will have to post the code you are looking at.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com