Undefined function

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Undefined function

Postby zodehala » 03. October 2006 21:47

in normal conditions following script must run

Code: Select all
<?php
$link = mysql_connect('localhost', 'admin', '123');
if (!$link) {
    die('keine Verbindung möglich: ' . mysql_error());
}

if (mysql_create_db("my_db")) {
    echo "Base de données créée\n";
} else {
    echo "Erreur lors de la création de la base: " . mysql_error();
}
?>


but whenever i try to run this script following error is occured


Fatal error: Call to undefined function mysql_create_db() in C:\Program Files\xampp\htdocs\mysite\index.php on line 7

my server
========================================
* Apache 2.2.3
* MySQL 5.0.24a
* PHP 5.1.6 & PHP 4.4.4
* phpMyAdmin 2.8.2.4
* FileZilla FTP Server 0.9.18
* OpenSSL 0.9.8c


where is the problem ????????????????
zodehala
 
Posts: 22
Joined: 08. August 2006 12:39

Postby Wiedmann » 04. October 2006 00:13

where is the problem ????????????????

You have not read the PHP-Manual!!!!!!!!!!!!!!!!

BTW:
The error message is clear... There is no function mysql_create_db() in PHP (with an up-to-date MySQL client).
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 184 guests