SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member BungeeBones's Avatar
    Join Date
    Jan 2008
    Location
    Florida
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Php/Mysql not working in specific browsers?

    I've not seen or heard of this situation before and search engine queries have come up empty. Since PHP and Mysql are server based how can a code executing in one browser (I.E.) work and not work in others (FireFox, Chromium)?
    I've traced the problem to one line of code working in IE but not in the others ... here it is:

    'while($catagoryListing && $catagoryLine = $db->fetchAssocArray($catagoryListing)){'If I comment out the line (and the closing bracket) and manually insert the one, single value it retrieves then the script will display in the other browsers.
    I've never heard of such a thing! Either my queries have worked or they haven't based on connectivity, syntax, etc but never by browser. I've inherited the project. Should I rewrite the database connection code for the whole site? I'm stumped!
    Any troubleshooting ideas?

    BungeeBones.com
    - A New Paradigm of Website Promotion

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,604
    Mentioned
    24 Post(s)
    Tagged
    1 Thread(s)
    test what value $catagoryListing has immediately before that line - presumably the value will be different in IE to the other browsers - then work back through the code to where it is set to see what value is being passed from the browser differently to cause the problem.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


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
  •