Reposting the code sorry:
host_info);
/* close connection */
$mysqli->close();
?>
Linux NG/Lists wrote:
Goltsios Theodore wrote:
Well if you are in the unix case then you should check if your php
supports mysqli :-) . In either case unix or not you could use phpinfo:
Oh, sorry, I tho
|Why don't you try this:|
|host_info);|
||
|/* close connection */|
|$mysqli->close();|
|?>|
I took this script from the php manual so why don't you try it and see
what |mysqli_connect_error will do for you. In that you will debug the
previous script and find out what went wrong.|
Linux NG/Li
Goltsios Theodore wrote:
Well if you are in the unix case then you should check if your php
supports mysqli :-) . In either case unix or not you could use phpinfo:
Oh, sorry, I thought I posted this before. Looks like I didn't. I'm
pretty sure it supports mysqli:
'./configure' '--prefix=
Well if you are in the unix case then you should check if your php
supports mysqli :-) . In either case unix or not you could use phpinfo:
This will show a lot useful information about what your web server and
your php can or cannot do.
Linux NG/Lists wrote:
The book I'm working with (PHP
The book I'm working with (PHP & MySQL Web Dev, Welling/Thompson)
specifically defines the 'new mysqli' syntax. So I'm guessing I don't
have something configured right?
If one works the other should too. Your code here looks fine according
to the manual (http://www.php.net/manual/en/function.m
Linux NG/Lists wrote:
From a php-general thread earlier:
generates:
Fatal error: Call to undefined function new mysqli() in index.php on
line 24
while
';
?>
generates success:
conn good: Object id #1 :very good indeed
The book I'm working with (PHP & MySQL Web Dev, Welling/T
From a php-general thread earlier:
generates:
Fatal error: Call to undefined function new mysqli() in index.php on
line 24
while
';
?>
generates success:
conn good: Object id #1 :very good indeed
The book I'm working with (PHP & MySQL Web Dev, Welling/Thompson)
specifically d