Klasse 'mysqli_connect' nicht gefunden

Okay, so das ist mein problem jetzt. Ich bin PHP 5.5.12 und MySQL 5.6.17. Die php mysqli_connect aktiviert ist auf meinem php-Einstellungen, aber noch immer Fehler. Keine Hilfe? Vielen Dank im Voraus.

Hier ist meine dbcon.php

<?php
//Connect to the database 
$link = new mysqli_connect ("localhost", "root", "", "towertec_master"); 
if (mysqli_connect_errno()) 
{
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}?>

- Und das ist meine main.php

<?php
include ("lib\dbcon.php");

//is a client logged in?
include("lib/login_check.php");

include("lib/fetch_org_data.php");
$thispage="main";   
?>

Dies ist die Fehlermeldung:

Fatal error: Class 'mysqli_connect' not found in C:\wamp\www\Trading\lib\dbcon.php on line 3
Call Stack
#   Time    Memory  Function    Location
1   0.0014  244472  {main}( )   ..\main.php:0
2   0.0023  247912  include( 'C:\wamp\www\Trading\lib\dbcon.php' )  ..\main.php:2
Es ist new mysqli und nicht new mysqli_connect - RTFM => php.net/manual/en/mysqli.construct.php
Großer Dank. Ihre Arbeitsweise.
Keine problemo. Akzeptieren Sie eine Antwort unter die Frage schließen und als gelöst markiert. Hier ist, wie meta.stackexchange.com/a/5235 <= Welcome to Stack

InformationsquelleAutor jelynsison | 2014-11-03

Schreibe einen Kommentar