<form method="POST" action="welcome.php">
<input name="fname" type="text"/>
<input type="submit" value="Submit">
</form>
<?php
$connect = mysqli_connect("dbhost", "dbuser", "dbpass", "dbname");
mysqli_query($connect, 'INSERT INTO `Urls` (URLS)
VALUES
("$_POST[`fname`]");')
?>
So after fixing the php script several times I finally get it to post to the database, but instead of posting user inputs it's posting 0s in the column. I don't have anymore syntax errors, and I've tried the back ticks in various ways.
The Table looks like:
URLS
0
0
0