Nax Posted October 10, 2007 Share Posted October 10, 2007 I admit it, I'm a complete noobie, bought a laptop coz I'm supporting a SMF forum similar to this and I know noting about PHP or MySQL. OK first thing - bought a book, Teach Yourself MySql, Apache,PHP. Installed all from download sites and I think all three elements are working. Started to foloow the instructions in the book at the point where I want to get a web page to talk to a database. Used the sample given to test connectivity: <?php $mysqli = new mysqli("localhost", "nax", "250558", "test"); if (mysqli_connect_errno()) { printf("connect failed: %s\n", mysqli_connect_error()); exit(); } else { printf("host information: %s\n" , mysqli_get_host_info($mysqli)); } ?> result = Class 'mysqli' not found 2 mysqlconnect.php C:\Program Files\Apache Group\Apache2\htdocs Fatal error The book hasn't even mentioned classes yet! so I've fallen at the first hurdle (I am not a programmer even minor HTML is an unknown). Anyone steer a newborn in the right direction? :-\ Link to comment https://forums.phpfreaks.com/topic/72591-newbies-unite-it-aint-easy-first-time/ Share on other sites More sharing options...
Nax Posted October 10, 2007 Author Share Posted October 10, 2007 more info:- The file php_mysqli.dll exisits in c:\php creating a file containg phpinfo() brings back the phpinfo page ok Link to comment https://forums.phpfreaks.com/topic/72591-newbies-unite-it-aint-easy-first-time/#findComment-366087 Share on other sites More sharing options...
trq Posted October 10, 2007 Share Posted October 10, 2007 creating a file containg phpinfo() brings back the phpinfo page ok Does this page contain any info about mysqli? Link to comment https://forums.phpfreaks.com/topic/72591-newbies-unite-it-aint-easy-first-time/#findComment-366101 Share on other sites More sharing options...
Nax Posted October 10, 2007 Author Share Posted October 10, 2007 No I did a search and can't see it there :-\ Attached a copy of my phpinfo [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/72591-newbies-unite-it-aint-easy-first-time/#findComment-366121 Share on other sites More sharing options...
Nax Posted October 10, 2007 Author Share Posted October 10, 2007 Just reading up, would it be easier to uninstall and use Wamp5 ? I'm running Vista all I want to do s learn by setting up a devleopment environment on my laptop, MySql, Apache, PHP. Have decent PHP editor. Link to comment https://forums.phpfreaks.com/topic/72591-newbies-unite-it-aint-easy-first-time/#findComment-366170 Share on other sites More sharing options...
trq Posted October 10, 2007 Share Posted October 10, 2007 Yes. it would be much easier to install a pre-configured package. Link to comment https://forums.phpfreaks.com/topic/72591-newbies-unite-it-aint-easy-first-time/#findComment-366209 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.