Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as PHP by enric ( 16 years ago )
<html>
<head>
<title>CRAZY BALLS - RESULTAT INSTALACIÓ - </title>
</head>
<style type = 'text/css'>
body
{
background-color:black;
background-image:url('balls.jpg');
background-repeat:no-repeat;
background-position:center center;
background-attachment: fixed;
}
h2
{
position:relative;
margin:0px auto 10px;
font-family: Arial;
font-size:20px;
color: #305200;
}
.estructura
{
position:relative;
left:500px;
top:250px;
}
.titol
{
position:absolute;
left: 440px;
top:20px;
background-image:url('logo.png');
width:500Px;
height:200px;
}
</style>
<body>
<link href="estil.css" rel="stylesheet" type="text/css">
<?php
require ('connexio.php');
$baseDeDades = "jugadors";
if (!$connexio) { die("<div id='error'><h2 align='center' style='top:200px;'>(ERROR): La conexió amb el servidor ha fallat.</h2>". mysql_error())."</div>"; }
$createDB = 'CREATE DATABASE JUGADORS';
if (mysql_query($createDB, $connexio))
{
echo "<div id='error'><h2 align='center' style='top:200px;'>Base de dades creada correctament.<h2>";
}
else
{
echo "<h2 align='center' style='top:200px;'>(ERROR!!)No es possible crear la base de dades:</h2>";
echo "<h2 align='center' style='top:200px;'>" .mysql_error() ;
echo "<br><br>";
}
mysql_select_db($baseDeDades, $connexio);
$createT = 'CREATE TABLE jugadors (
id INT NOT NULL AUTO_INCREMENT,
usuari VARCHAR(50),
contrassenya VARCHAR(50),
email VARCHAR(50),
puntuacio VARCHAR(50),
posicio_ranking VARCHAR(5),
data_partida DATETIME,
PRIMARY KEY (id))';
if (mysql_query($createT, $connexio))
{
echo "<h2 align='center' style='top:200px;'>La taula jugadors s'ha creat amb exit.<h2>";
}
else
{
echo "<h2 align='center' style='top:200px;'>(ERROR!!)Impossible crear la taula:</h2>";
echo "<h2 align='center' style='top:200px;'>" .mysql_error() ;
}
?>
</body>
</html>
Revise this Paste