Jump to content

chopra.arpita92@gmail.com

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by chopra.arpita92@gmail.com

  1. Hello,

     

    I 'm working on html & php. I wrote 2 lines below. The thing is i have a map of room i kept some phones in some location. I uploaded the map to my portal, when i'll click to one phone it should give details about phone. Now it is giving last value. i wrote 10 coords attribute line if i'll click on anyone it'll last value. how can i stop on particular value like if i'm clicking on 3rd phone it should give third phone details not 10th phone detail. i tried with break also but thing were same. is there any way?

     

    <area shape="rect" coords="252,308,274,342" alt="35"<?php $a ="0104020201" ?>href ="dbcon.php?"<br>>
    <area shape="rect" coords="418,326,435,355" alt="111" <?php $a ="0104020101"?>href ="dbcon.php?"<br>>
  2. Thanks for your response. I would like to add here that this involves two different files. One is PHP file which contains function definition. Then there is a HTML file, where I included the other PHP file and want to call it's function passing a parameter. Please share any thoughts on this. Thanks.

  3. 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,
×
×
  • Create New...