SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Threaded View

  1. #1
    SitePoint Addict
    Join Date
    Jun 2007
    Location
    Plymouth uk
    Posts
    313
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    this page works in opera but not iexplorer

    as i said this works ok in opera but get errors on page if run in explorer when you press either button
    any ideas
    cheers
    Doug

    PHP Code:
    //Retrieves data from MySQL

     
    $data mysql_query("SELECT * FROM register where name='$myname'") or die(mysql_error());
     
    $count mysql_num_rows($data);
     if (
    $count==0) { 
    header ("Location: wrong.html");
    } else {

    //Puts it into an array 
    while($info mysql_fetch_array$data )) 

    //Outputs the image and other data
    Echo "<img class=\"style1\" src=http://www.lostpetsplymouth.com/images/".$info['pname'] ." alt=\"Image\" align=\"center\" width=\"250px\" height=\"300px\" style=\"display:block;margin:0 auto;\" hspace=\"10px\" vspace=\"8px\"> <br>";
    Echo 
    "<p class=\"style3\">" $info['state'] . " " $info['type'] . " </p>";
    Echo 
    "<p class=\"style2\"><b>Area:</b> ".$info['area'] . " </p>";
    Echo 
    "<p class=\"style2\"><b>Details:</b> ".$info['desc'] . " </p>";
    Echo 
    "<p class=\"style3\"><b>If Seen Please Tel:</b> ".$info['tel'] . " </p>";

    }
    ?>
    </div>
    <div>
    <input type="button" value="Print this page"
    onclick="printpage()" />
    </div>
    <div>

    <input type="button" value="Cancel"
    onclick="index.html"/>
    </div>
    </body>
    </html> 
    Last edited by dougvcd; Apr 22, 2009 at 11:36. Reason: more info
    an old man of 60 trying to keep up with the youngsters he he
    http://lostpetsplymouth.net16.net


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •