Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.