Problem with a function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Smasher
Forum Commoner
Posts: 38
Joined: Fri Apr 20, 2007 5:22 am

Problem with a function

Post by Smasher »

Help!
Last edited by Smasher on Fri Apr 20, 2007 2:03 pm, edited 1 time in total.
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post by jayshields »

Have you uncommented the mysqli module in your php.ini?

If so, echo php_info() and show us the output. If that's also fine, you'll have to show us some more code, especially bits including $db.
Smasher
Forum Commoner
Posts: 38
Joined: Fri Apr 20, 2007 5:22 am

Post by Smasher »

$db = new mysqli($dbhost,$dbuser,$dbpass,$defaultDB);

if(mysqli_connect_errno())
{printf("Connect failed: %s\n", mysqli_connect_error());
exit();}


Cant get on the server atm to even test, le sigh.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

Smasher wrote:le sigh.
:rofl:
Smasher
Forum Commoner
Posts: 38
Joined: Fri Apr 20, 2007 5:22 am

Post by Smasher »

PHP Version 5.1.4

System Windows NT S71569 5.2 build 3790
Build Date May 4 2006 10:30:29
Post Reply