Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host = "localhost";
- $database = "root";
- $user = "root";
- $password = "";
- $conn = mysql_connect($host, $user, $password) or die("impossibile connettersi");
- $db = mysql_select_db($database, $conn) or die ("impossibile selezionare il database ");
- if ($conn AND $db) print "OK";
- //$open = fopen("text.txt", "a+");
- //$contenuto = fread($open, filesize("text.txt"));
- //if (feof($open)) break;
- //$lines = file("text.txt");
- //foreach ($lines as $k =>$v) {
- //$a = $lines[0];
- //print $a;
- //print $k . $v;
- print(mysql_query("INSERT INTO `lista_site`(`id`, `sito`, `nome`) VALUES (1, test, est)") ? "ok" : "errore");
- //}
- //fclose($open);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement