Hi!
first of all, the fatal error indicates that the mysql extension is
missing or just disabled. To find out what's wrong check for the file
php_mysql.(so|dll) [using *nix|Windows] in the php-extension directory.
If present, then open the php.ini file and search for the string
The code appears to be correct. But it sounds like a problem with the
php/mysql
integration. Try reinstalling PHP with the correct mysql libraries. In
phpinfo check
that mysql support is enabled. If you are not technical and would just
like to learn
the PHP language not how to configure it etc.
Mike,
There is no database sepcified in your code anywhere. The line:
$result = mysql_query($sql);
does not specify which database you are connecting to either. You can
specify the database in the line:
$link =
mysql_connect($host,$user,$password,$database);
Its very likely that he has installed the latest versions of mysql and php
and is using the incorrect library to try and make it go...change to the
latest mysqli librabry and try again
basiten
From: Stefan Reimers [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] Re: Newbie Setup
To all, I am sorry the correct line is:
mysql_select_db($link,database name)
If you are missing the database name you will get an error concerning
undefined function.
jzf
J. Connolly wrote:
Mike,
There is no database sepcified in your code anywhere. The line:
$result =
To: php-db@lists.php.net
From: Mike Rondeau [EMAIL PROTECTED]
Date: Sun, 6 Feb 2005 17:57:17 -0800
Subject: Newbie Setup Trouble
Hello,
Hi :)
I have just begun study of using PHP, MySQL and
Apache server. Right
now
I'm following a book, PHP and MySQL For Dummies and
am having trouble
Hello list,
I'd just like to thank everyone who jumped right in with their insights and
suggestions to my troubles. There's a lot to get me going there! Every one
of those posts was helpful.
I have downloaded XAMPP and am going to install it here in a minute. Armed
with that, and the use of