PROTECTED]
To: Erik Saline [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Wednesday, December 28, 2005 6:56 PM
Subject: Re: [PHP] mysqli class not found
you are not missing anything, you are actually adding to much. Using new
is for making objects, if you take away the new in the $result
added extenstion=mysqli.so to my php.ini
Erik
- Original Message -
From: PHP Superman [EMAIL PROTECTED]
To: Erik Saline [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Wednesday, December 28, 2005 6:56 PM
Subject: Re: [PHP] mysqli class not found
you are not missing
PHP Superman wrote:*
What OS are you using? I think that you entered the wrong filename. for
windows i use php_mysqli.dll . Somewhere in php.ini there is a list of
extensions you can use, uncomment the php_mysqli.dll , copy php_mysqli.dll
to the php install directory and change the php.ini
PHP Superman wrote:
Hold on, I heard that you can't run the mysql and mysqli php
extensions , try removing the mysql extension if my other advice
doesen't work
snip
Please reply to the list.
You can compile php with both.
From the manual :
http://us2.php.net/mysqli
If you would like to
- Original Message -
From: Erik Saline
To: php-general@lists.php.net
Sent: Wednesday, December 28, 2005 1:08 PM
I installed Apache, PHP, and Mysql during the Fedora Core 4 installation.
PHP 5.0.4
MYSQL 4.1.14
I used php -i to show that mysql and mysqli were installed.
Configure
you are not missing anything, you are actually adding to much. Using new
is for making objects, if you take away the new in the $result variable
declaration it should work fine.
On 12/28/05, Erik Saline [EMAIL PROTECTED] wrote:
- Original Message -
From: Erik Saline
To:
I'm using a XAMPP setup through ApacheFriends.org, version 1.4.14 - it uses
PHP 5.0.3 and MySQL 4.1.12 and Apache 2.0.54 (Win32)
The PHPInfo doesn't show the MySQLi extensions loaded, but I try adding the
DLL in the extension list like so:
;extension=php_msql.dll
Well, I figured out that problem (I suppose) by upgrading to MySQL 5.0 and
the error doesn't come up anymore... but now I get this error:
Fatal error: Call to a member function free() on a non-object in
C:\xampp\htdocs\results.php on line 60
Again, here's the code:
Could you make a var_export($result); before calling free() ?
Normally the extension should work fine with MySQL 4.1.12.
Does the phpinfo() say against which MySQL version it was compiled.
I use mysqli on linux and have no problems with it.
php5.1.0b1, apache 2.0.54, mysql
when i try it this way:
?php
// create short variable names
$searchtype=$_POST['searchtype'];
$searchtype=$_POST['searchterm'];
$searchterm=trim($searchterm);
if (!$searchtype || !$searchterm)
{
echo 'You have not entered search details. Please go back and try again.';
exit;
}
if
Hi,
One thing i see is the use of num_rows on mysqli_result class,
but num_rows is member or mysqli class and not mysqli_result.
Perhaps this call to num_rows corrupts the rest.
Other than that everything seems fine.
Perhaps you should consider linux :), much better choice
In a message dated 6/21/2005 2:55:08 P.M. Central Standard Time,
[EMAIL PROTECTED] writes:
error_reporting(E_ALL);
Well, with E_ALL on i get this error:
===
Notice: Undefined variable: searchterm in c:\wamp\www\books\results.php on
line 18
You have not entered search
Wow, I feel really stupid...
// create short variable names
$searchtype=$_POST['searchtype'];
$searchtype=$_POST['searchterm'];
the third line should be $searchterm=$_POST['searchterm']
wow lol... I'd like to hope this wasn't the error all along - but
Hey guys,
I'm doing a tutorial from a book (PHP and MySQL Web Development) and I'm
having a problem... when I use the script they supply I get this error:
Fatal error: Class 'mysqli' not found in
C:\apachefriends\xampp\htdocs\results.php on line 29
here is the code:
14 matches
Mail list logo