note 106927 deleted from language.types by tularis

From: Date: Mon, 19 Dec 2011 19:40:14 +0000
Subject: note 106927 deleted from language.types by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-185158@lists.php.net to get a copy of this message
Note Submitter: sunrise Reason: non-english ---- conexiune, creare <head> <title></title> </head> <body> <?php $hostname="localhost"; $username="root"; $password=""; $database="test"; $conexiune=mysql_connect($hostname,$username,$password) or die ("Nu ma pot conecta la baza de date"); $bazadate=mysql_select_db($database,$conexiune) or die ("Nu gasesc baza de date"); ?> </body> </html> <head> <title></title> </head> <body> <?php include "conexiune.php"; $delete="DROP TABLE IF EXISTS proba"; mysql_query($delete, $conexiune); $table="CREATE TABLE proba (id int(3) NOT NULL AUTO_INCREMENT, nume varchar(20) NOT NULL, prenume varchar(40) NOT NULL ,PRIMARY KEY (id))"; if(mysql_query($table)){ echo "Tabelul a fost creat"; } else{ echo "Tabelul nu a fost creat"; } mysql_close($conexiune); ?> </body> </html>

« previous php.notes (#185158) next »