STRANGE "Fatal error: Call to undefined function..." ERROR

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • inonzuk

    STRANGE "Fatal error: Call to undefined function..." ERROR

    why strange you ask? here goes:

    I have been working with Php and Mysql for a week without any problems.
    Today I tried executing a php page that connects to mysql and creates a
    new database, I got this error:

    "Fatal error: Call to undefined function mysql_connect() in C:\Program
    Files\Apache Group\Apache2\t est\_debug_tmp. php on line 3".

    I did some reading on the net and checked all my configuration, and it
    looks o.k. (and it already worked well a whole week before today).

    The strange thing is that I have another form that inserts data into
    the same database in Mysql, and it works like a charm (needless to say
    but both pages log in with the same username to the same database).

    any ideas?

  • Mike Willbanks

    #2
    Re: STRANGE "Fatal error: Call to undefined function...&quo t; ERROR

    > I have been working with Php and Mysql for a week without any problems.[color=blue]
    > Today I tried executing a php page that connects to mysql and creates a
    > new database, I got this error:
    >
    > "Fatal error: Call to undefined function mysql_connect() in C:\Program
    > Files\Apache Group\Apache2\t est\_debug_tmp. php on line 3".[/color]

    Your problem seems that the dll file for mysql is not loaded in your
    configuration. Why the other one works I do not know what your exact
    configuration is.

    Mike

    Comment

    • inonzuk

      #3
      Re: STRANGE "Fatal error: Call to undefined function...&quo t; ERROR

      PROBLEM & MISTERY SOLVED:

      for some reason my php editor used in some pages the php.ini found in
      my php directory (there pages did not work). and the pages that did
      work used another php.ini file found in my c:\windows\syst em32\
      directory.

      anyway, thanks alot for the help.

      Comment

      Working...