Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
[email protected] web/email now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!

Paste

Pasted as HTML by nicnic ( 14 years ago )
<body>
<?php

$db = mysql_connect("localhost","root","");
if (!$db)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("nactown", $db);

$navn = $_POST['navn'];
$kommentar = $_POST['kommentar'];

$sql="INSERT INTO kommentarer (navn, kommentar) VALUES ('$navn' '$kommentar')";


if (!mysql_query($sql,$db))
  {
  die('Error: ' . mysql_error());
  }

mysql_close($db)
?>
<a href="yoink.php">Ty, click me to get back !</a>
</body>

 

Revise this Paste

Your Name: Code Language: