connection to sql

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #16
    to fix one obvious mistake, <form> must be placed inside <body> (see also validator.w3.or g)

    Comment

    • MrMancunian
      Recognized Expert Contributor
      • Jul 2008
      • 569

      #17
      Ok, first of all let me say that Internet Explorer is a horrible browser, especially for web development. It's usually best to use Firefox or Chrome, and then just check in with IE from time to time to see if you need to apply fixes. Join the 21'st century! ;)
      This is very subjective. In the future, phrase this as "I think of IE as a horrible browser", as your opinion does not necessarily has to reflect reality. I use IE for development and I have no problems whatsoever.

      Steven

      Comment

      • Leen
        New Member
        • Aug 2010
        • 22

        #18
        this is reply for "Dormilich" :
        thank u.
        i place form inside body, but this is not here the problem.
        and i use validator.w3.or g, but it doesn't detect the main problem

        Comment

        • Leen
          New Member
          • Aug 2010
          • 22

          #19
          this is reply for "Dormilich" :
          thank u.
          i place form inside body, but this is not here the problem.
          and i use validator.w3.or g, but it doesn't detect the main problem

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #20
            I didn’t think it would be the cause of the problem, though it’s always good practice to have valid HTML (which can cause other problems).

            Comment

            • Leen
              New Member
              • Aug 2010
              • 22

              #21
              but my problem is in php not in html..

              Comment

              • Atli
                Recognized Expert Expert
                • Nov 2006
                • 5062

                #22
                This doesn't sound like a problem in your code. If you are getting "The connection was reset" as an error message, it sounds more like a problem with your server configuration.

                Could also be that something in your PHP code is causing a timeout. Do you have to wait long until the error message is shown?

                Could you tell us more about your server? Like the OS you are running, and the versions of the server software. Also, any firewall or such you are running.

                Comment

                • Atli
                  Recognized Expert Expert
                  • Nov 2006
                  • 5062

                  #23
                  This is very subjective. In the future, phrase this as "I think of IE as a horrible browser", as your opinion does not necessarily has to reflect reality. I use IE for development and I have no problems whatsoever.
                  This is not an opinion, sadly. IE has horrible standards support and a very bad track record when it comes to bugs. Doesn't take much research to verify this. (Just make sure to avoid Microsoft's own propaganda. There is a lot of it out there.)

                  Not to mention that if you try to adhere to the standards when creating websites, you usually have to work around a few IE bugs/incompatibiliti es. A lot of us even have "standard" IE standards support fixes we include by default to avoid the brunt of it.

                  Comment

                  • cutesrivastavaabhi
                    New Member
                    • May 2010
                    • 8

                    #24
                    Code:
                    <?php
                    mysql_connect("localhost","root","")or die("not connected");
                    mysql_select_db("db name")or die("db not connected".mysql_error());
                    ?>
                    Last edited by Dormilich; Sep 1 '10, 08:12 AM. Reason: Please use [code] tags when posting code

                    Comment

                    • Leen
                      New Member
                      • Aug 2010
                      • 22

                      #25
                      No we don't have to wait to long as we load the page it gives us "The connection was reset"
                      also we are working on windows 7
                      and the program is WAMP version 2.0
                      and we are using Firefox version of mozilla is 3.6.8

                      Comment

                      • kovik
                        Recognized Expert Top Contributor
                        • Jun 2007
                        • 1044

                        #26
                        I know that, in Internet Explorer at least, your error oftentimes implies PHP errors. When there are errors in a page, your server sends an HTTP 500 response. Internet Explorer takes the HTTP 500 response and runs with it. You can check for the exact errors by checking your error logs. Since you are using an Apache set up, you can find it in the error.log file in the logs folder. i.e. c:\wamp\logs\er ror.log

                        Looking at your code, I assume that you WILL find errors. You don't check if $_POST variables are empty, you spelled "INSERT" incorrectly, and you attempt to send headers after output has already been made to the browser.

                        Comment

                        • kovik
                          Recognized Expert Top Contributor
                          • Jun 2007
                          • 1044

                          #27
                          @MrMancunian: How can you claim to use IE for development? Each version of IE renders differently. You'd have to have IE6, IE7, and IE8 up to be able to claim that you support IE.

                          Which is what I have to do all the time. -_-

                          I'm scared of what problems IE9 will carry with it. I assume buggy CSS3 and HTML5, if they even follow through with it. To Microsoft, HTML5 is a buzzword.

                          Comment

                          Working...