I wanted to do a simple script. That how it looks like:
index.php:
[php]
pagr.php:
[php]<?php
$name = ($_POST[‘name’]);
$pass = ($_POST[‘pass’]);
$link = mysql_connect(‘localhost’, ‘root’, ‘’);
mysql_select_db(“db”, $link);
mysql_query(“INSERT INTO users (name,pass) VALUES(’$name’,’$pass’)”);
mysql_close($link);
?>[/php]
But when you write in text area in this case name and password it writes in mysql, but it writes not the name and password that i typed but zeros(0). Whats the problem? Sorry for my bad English and thank you.