pzuurveen 90 Posting Whiz in Training

use google.maps.marker()

the deprecated object google.maps.MarkerImage only defines the image.
(the also an example on the same page what to use now)

pzuurveen 90 Posting Whiz in Training

if $_GET['Id'] (line 1) is not set, $row['PageId'] (line 27) will no exist

pzuurveen 90 Posting Whiz in Training

line 57

 if ($child->getName() == "URL")
        $url = $child; 

$child is of type simplexml-element (object)
therefor so is $url
use (string) yo make it a string:

if ($child->getName() == "URL")
            $url = (string) $child; 

do the same on line 55 and 52

pzuurveen 90 Posting Whiz in Training
pzuurveen 90 Posting Whiz in Training

This should be better

    var element = document.createElement("select");//create select element
    element.setAttribute("name", "text");
    var option = document.createElement("option");//create option element
    <?php
    //Server= localhost, Username= root, pasword = "there is no password" and db name = bsc_db.
    mysql_connect('localhost', 'root', '') or die('Connection could not be established');
    mysql_select_db('bsc_db') or die('Database is not present');
    $q = mysql_query("SELECT * FROM doctor_t");

    while($r = mysql_fetch_array($q))
        {
        ?>
        option.text = '<?php echo $r['dname'];?>';//option text attribute
        option.value= "<?php echo $r['id']; ?>";
        try {
            element.add(option, null); //Standard
            }
        catch(error) {
            element.add(option); // IE only
            }
    <?php } // end while ?>
    cell1.appendChild(element);
pzuurveen 90 Posting Whiz in Training

you need to add each option-element to the select-element separately.
So put the element.add insde the while loop:

    var element = document.createElement("select");//create select element
    element.setAttribute("name", "text");
    var option = document.createElement("option");//create option element
    <?php
    //Server= localhost, Username= root, pasword = "there is no password" and db name = bsc_db.
    mysql_connect('localhost', 'root', '') or die('Connection could not be established');
    mysql_select_db('bsc_db') or die('Database is not present');
    $q = mysql_query("SELECT * FROM doctor_t");
    $options = '';
    while($r = mysql_fetch_array($q))
        {
        $options .= '<option value="'.$r['id'].'">'.$r['dname'].'</option>';

        ?>
        option.text = '<?php echo $options;?>';//option text attribute
        option.value= "text";
        //option.value = "name";//option value attribute
        try {
            element.add(option, null); //Standard
            }
        catch(error) {
            element.add(option); // IE only
            }

   <?php  } // end while ?>  
    cell1.appendChild(element);
pzuurveen 90 Posting Whiz in Training

what are trying to do
Hack user profiles from playstation.com?

pzuurveen 90 Posting Whiz in Training

oeps!

simplypixie commented: What is that supposed to mean -1