Jump to content

NEWBIES UNITE - it ain't easy first time


Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.