problem for showing output of php file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • curi444
    New Member
    • Jan 2010
    • 18

    #16
    ur code have an error.....befor e mysql_connect a @ symbol is needed.
    i correct that error.then display as

    Attempting to connect to MySQL

    Comment

    • udaypawar
      New Member
      • Feb 2007
      • 29

      #17
      If you are working with IIS, PHP and mysql there might be a problem that mysql extension is not enabled by default.

      Fatal error: Call to undefined function mysql_connect() in C:\Inetpub\wwwr oot\my.php on line 6

      This error says that library for mysql is not found. You can search for libmysql and register that dll with windows plus search for php_mysql.dll and put it in extensions directory of PHP.

      Then go to php.ini file and enable mysql.




      Better option is to install latest version of wamp 5. Your first installation for WAMP was correct but showing blank page because there was error on the page.

      Click on wamp server icon (In taskbar) -> PHP -> PHP settings-> select display_error. It should be true. Then open php.ini search for error_reporting and make it E_ALL. With this settings your PHP will display you all the errors instead of blank page.

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #18
        Originally posted by curi444
        ur code have an error.....befor e mysql_connect a @ symbol is needed.
        i correct that error.then display as

        Attempting to connect to MySQL
        No - that's not an error. I intentionally omitted it from my code. The @ symbol suppresses any errors that may arise from a function call. If you use it, you won't know of an error occurring (much like what has just happened). When we take away the @ symbol, the PHP engine tells us that you don't have a function called mysql_connect. That is, you haven't enabled mysql in your PHP configuration. Open up your php.ini file and remove the ';' from a line that looks like this:

        Code:
        ;extension=mysql.dll

        Comment

        • curi444
          New Member
          • Jan 2010
          • 18

          #19
          i re installed wamp5 refering this link


          find it is very helpful

          thanks all of u for help me

          Comment

          Working...