DJMaze,
What do i do with that?
The following, is the code i use to create the database:
Code:
<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
// Create database
if (mysql_query("CREATE DATABASE photos",$con))
{
echo "Database created";
}
else
{
echo "Error creating database: " . mysql_error();
}
// Create table in photos database
mysql_select_db("photos", $con);
$sql = "CREATE TABLE image
(
path text
)";
mysql_query($sql,$con);
mysql_close($con);
?>
Many Thanks,