'insert into' with vars
Posted by: nezek
Posted on: 2005-02-11 07:07:00
i have these lines:
$massage = $_GET["massage"];
$nick = $_GET["nick"];
$result="INSERT INTO `itest` ( `nick` , `massage` ) VALUES ( '$nick' , '$massage' );";
if (mysql_query($result)){
echo "success.";
}
when i run it, it shows "success",
but it does not insert (i checked the database from phpmyadmin)
what can i do ?