note 106927 added to language.types
| From: | sunrise at osu1 dot php dot net | Date: | Mon, 19 Dec 2011 09:29:16 +0000 |
| Subject: | note 106927 added to language.types | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-185135@lists.php.net to get a copy of this message | ||
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>
----
Server IP: 69.147.83.197
Probable Submitter: 193.231.19.18
----
Manual Page -- http://www.php.net/manual/en/language.types.php
Edit -- https://master.php.net/note/edit/106927
Del: integrated -- https://master.php.net/note/delete/106927/integrated
Del: useless -- https://master.php.net/note/delete/106927/useless
Del: bad code -- https://master.php.net/note/delete/106927/bad+code
Del: spam -- https://master.php.net/note/delete/106927/spam
Del: non-english -- https://master.php.net/note/delete/106927/non-english
Del: in docs -- https://master.php.net/note/delete/106927/in+docs
Del: other reasons-- https://master.php.net/note/delete/106927
Reject -- https://master.php.net/note/reject/106927
Search -- https://master.php.net/manage/user-notes.php