Jump to content

pass a variable in coords attribute


Recommended Posts

Hello,

 

I'm working on php & html. In html i wanna call variable inside coords. But i'm not able to call. i want to pass a variable value over html.

 

<area shape="rect" coords="254,337,273,362" alt="126" title ="Beacon1" href="dbcon.php?Name=6s" >

 

I wanna fetch data from database server using php.

<html>
<?php include_once("connection.php");
?>
<?php
mysqli_select_db($conn,"ble_beacon");
$sql = "SELECT * FROM ble_beacon where Name='$Name'";
$result = mysqli_query($conn,$sql);
//var_dump($row);
while ( $row = mysqli_fetch_array($result)) {
echo '<br/>';
echo 'Name :'. $row['Name'];
echo '<br/>';
echo 'Location :'. $row['Location'];
echo '<br/>';
echo 'MacID :'.$row['MacID'];
echo '<br/>';
echo 'LastUpdated :'. $row['LastUpdated'];
echo '<br/>';
}
?>
</html>
I wanna put different different values in coords so that when i'll click a part i'll give the value of that part. I'm not able to fetch the data,
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...