On 19 Dec 2005 04:35:11 -0800, in mailing.database.mysql "Mike"
<mike@mjfcadsolutions.co.uk> wrote:
[color=blue]
>| Thanks Bill.
>|
>| I can now create a database etc and I got all of my last issues
>| working.
>|
>| Now I'm trying to get PHP to talk to the MySQL database.
>|
>| I have MySQL installed and PHP. Both up and running.
>|
>| I have updated the php.ini file with the following...
>|
>| magic_quotes_gpc = On
>|
>| doc_root = "C:\Documents and Settings\Administrator\My
>| Documents\PHP\PortableWebAp3\PortableWebAp3.1\Prog ram\www\localhost"
>|
>| extension_dir = "C:\Documents and Settings\Administrator\My
>| Documents\PHP\PortableWebAp3\PortableWebAp3.1\Prog ram\php\ext"
>|
>| Everything else I have left the same. I have updated the path in the
>| windows system variables to include...
>|
>| C:\Documents and Settings\Administrator\My
>| Documents\PHP\PortableWebAp3\PortableWebAp3.1\Prog ram\php
>|
>| Then I try and run the following PHP script...(password obviously
>| blanked out). I've tried it with both ways, with " and with '.
>|
>| <?php
>| // Connecting, selecting database
>| $link = mysql_connect("localhost", "root", "*******")
>| or die('Could not connect: ' . mysql_error());
>| echo 'Connected successfully';
>| mysql_select_db("test") or die('Could not select database');
>| ?>
>|
>| This is what I get....
>|
>| Fatal error: Call to undefined function mysql_connect() in C:\Documents
>| and Settings\Administrator\My
>| Documents\PHP\PortableWebAp3\PortableWebAp3.1\Prog ram\www\localhost\dbtest\dbtest2.php
>| on line 3[/color]
I was getting the same error. Use google groups and look under alt.php
for the topic "Install problems - php5, IIS 5.1, Windows XP Pro,
ISAPI" where Martin Valley and myself finally work out this problem.
---------------------------------------------------------------
jnorthau@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------