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
Please reply to the list.
You can compile php with both.
From the manual :
http://us2.php.net/mysqli
If you would like to instal
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 extens
/www/cgi-bin/db_connect.php on line 4,
>
> I added extenstion=mysqli.so to my php.ini
>
> Erik
>
> - Original Message -
> From: "PHP Superman" <[EMAIL PROTECTED]>
> To: "Erik Saline" <[EMAIL PROTECTED]>
> Cc:
> Sent: Wednesday, Dec
erman" <[EMAIL PROTECTED]>
To: "Erik Saline" <[EMAIL PROTECTED]>
Cc:
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 t
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: php-
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 atlea
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 de
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
when i try it this way:
query($query);
$num_results = $result->num_rows;
echo 'Number of books found: '.$num_results.'';
for ($i=0; $i <$num_results; $i++)
{
$row = $result->fetch_assoc();
echo ''.($i+1).'. Title: ';
echo htmlspecialchars(stripslashes($row['title']));
echo 'Author: ';
e
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 4.1.1
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:
=
11 matches
Mail list logo