Click here to Skip to main content
15,920,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing a google map using javascript,php,mysql.I store latitude,longitude,name etc in city table in database .i can acess it in php also .By using these datas i want to show google map in java script.but its not working.plz tell me the answer ASAP.
Posted
Updated 5-Mar-14 1:31am
v2

1 solution

declare a variable in php
PHP
$emp_name = "" ;// assign value from db
then access in java script like this 
var emp_name =<?php echo $emp_name; ?>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900