i have installed php on IIS on my win2000 computer.
then i installed MySQL and then phpmyadmin.
i have an example i made in school on linux machines (it works there), tested it here nothing of that works so i have no idea how to make things work on this machine too?
this is the code from my first file.
<?php
$host = "localhost";
$user = "root";
$password = "";
$DBName ="mindatabas";
$link = mysql_connect ($host, $user, $password);
if (mysql_create_db ($DBName, $link))
{
print ("din databas $DBname skapades");
}
else
{
print ("din databas $DBname skapades INTE!!");
}
mysql_close ($link);
?>
my browser complaigns about this:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10061) in C:\projekt\public_html\db\cr8db.php on line 7
Notice: mysql_create_db() [function.mysql-create-db]: This function is deprecated, please use mysql_query() to issue a SQL CREATE DATABASE statement instead. in C:\projekt\public_html\db\cr8db.php on line 9
Warning: mysql_create_db(): supplied argument is not a valid MySQL-Link resource in C:\projekt\public_html\db\cr8db.php on line 9
Notice: Undefined variable: DBname in C:\projekt\public_html\db\cr8db.php on line 15
din databas skapades INTE!!
Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in C:\projekt\public_html\db\cr8db.php on line 18
heheeh what to do?