Macemore
Circumcised pineapples
I have a form and it posts some one's username (give through form) to this:
but nothing ends up in my table! I'm not getting connection issues because there's no error. so I'm guessing it's something with tables.
Could you set up a SQL file that I can run in my database and see if that works? ;<
help please
PHP:
<?php
$user = $_POST['usre'];
$con = mysql_connect("localhost","u240887943_use","password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("u240887943_use", $con);
mysql_query("INSERT INTO users (user)
VALUES ($user)");
mysql_close($con);
echo 'totally worked';
?>
Could you set up a SQL file that I can run in my database and see if that works? ;<
help please