Install.php erstellen

Xarfai

Mitglied
Hi ich möchte ne Install.php erstellen und die soll einfach nur die tabelle erstellen nur machtse das nicht hier mal der code:

PHP:
$servername = "localhost";
$dbusername = "root";
$dbpassword = "";
@mysql_connect ("$servername", "$dbusername", "$dbpassword") OR die ("Verbindung zum MySQL-Server fehlgeschlagen");
mysql_select_db("clan_fg_de");
$query1="CREATE TABLE 'member2' (
  name varchar(20) NOT NULL default '',
  nick varchar(30) NOT NULL default '',
  userpic text NOT NULL,
  cfg text NOT NULL,
  alter int(10) NOT NULL default '0',
  jahr text NOT NULL,
  rang text NOT NULL,
  motto text NOT NULL,
  system text NOT NULL,
  con text NOT NULL,
  mod text NOT NULL,
  id int(10) unsigned NOT NULL auto_increment,
  mail varchar(30) NOT NULL default '',
  PRIMARY KEY  (id),
  KEY id (id)
) TYPE=MyISAM AUTO_INCREMENT=2 ; ";
mysql_query($query1);

Sry isn bissele Lang also helft mirmal bitte der will die einfach nicht erstellen
 

Neue Beiträge

Zurück