im trying to insert values on form submit but no result nothing is entering in the databse not even empty values,
if(isset($_POST['signup'])) {
mysql_query("INSERT INTO user (fname, lname)
VALUES ('Peter', 'Griffin')");
}
i checked if theres connection to database and it's connected. ANYONE ?
mysql_*functions. They are deprecated.mysql_error()return anything? Link: mysql_error(). Although, note the red box, these functions are deprecated.mysql_*functions in new code. They are no longer maintained and are officially deprecated. See the red box? Learn about prepared statements instead, and use PDO or MySQLi - this article will help you decide which. If you choose PDO, here is a good tutorial.isset($_POST['signup'])is false ?