Connecting to MySql

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

    Connecting to MySql

    I have installed MySql on a Windows 98 workstation. I start the service
    with the command: mysqld

    I can connect to the database and see tables, etc.

    I have installed Apache Ver 1.X with PHP ver 5.0.0b1

    Simple PHP scripts work fine.

    When I try to connect to the Mysql database I get this error from PHP in my
    browser

    Fatal error: Call to undefined function: mysql_connect() in c:\program
    files\apache group\apache\ht docs\secretdb.p hp on line 30


    With this version it is my understanding the MySql and ODBC support are
    internal to PHP and I do not have to enable Windows extensions within the
    PHP.ini file.. Anyone have any idea on why this function seems to be
    undefined in PHP when it is internal? Should I download and install ver 4.x
    I have updated MDAC to ver 2.7.


    I am NEW to PHP, MySql and Apache and having fun!!!!!!

    Regards,
    Bob




  • sam

    #2
    Re: Connecting to MySql

    "Bob Trautman" <btrautman1@aus tin.rr.com> wrote in message news:<XR2Oa.642 42$TJ.3240016@t wister.austin.r r.com>...[color=blue]
    > I have installed MySql on a Windows 98 workstation. I start the service
    > with the command: mysqld
    >
    > I can connect to the database and see tables, etc.
    >
    > I have installed Apache Ver 1.X with PHP ver 5.0.0b1
    >
    > Simple PHP scripts work fine.
    >
    > When I try to connect to the Mysql database I get this error from PHP in my
    > browser
    >
    > Fatal error: Call to undefined function: mysql_connect() in c:\program
    > files\apache group\apache\ht docs\secretdb.p hp on line 30[/color]

    MySQL is not boundled an enabled by default in PHP any more (from v5.0)
    but SQLite is .
    [color=blue]
    > With this version it is my understanding the MySql and ODBC support are
    > internal to PHP and I do not have to enable Windows extensions within the
    > PHP.ini file.. Anyone have any idea on why this function seems to be
    > undefined in PHP when it is internal? Should I download and install ver 4.x
    > I have updated MDAC to ver 2.7.[/color]

    See the previous remarque.

    Comment

    Working...