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
Smasher
Forum Commoner
Posts: 38 Joined: Fri Apr 20, 2007 5:22 am
Post
by Smasher » Fri Apr 20, 2007 5:24 am
Help!
Last edited by
Smasher on Fri Apr 20, 2007 2:03 pm, edited 1 time in total.
jayshields
DevNet Resident
Posts: 1912 Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England
Post
by jayshields » Fri Apr 20, 2007 5:48 am
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 » Fri Apr 20, 2007 6:01 am
$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.
Kieran Huggins
DevNet Master
Posts: 3635 Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:
Post
by Kieran Huggins » Fri Apr 20, 2007 6:35 am
Smasher wrote: le sigh.
Smasher
Forum Commoner
Posts: 38 Joined: Fri Apr 20, 2007 5:22 am
Post
by Smasher » Fri Apr 20, 2007 8:25 am
PHP Version 5.1.4
System Windows NT S71569 5.2 build 3790
Build Date May 4 2006 10:30:29