I've got an HTML form with 10 fields, they are all text inputs, with 1 password input. I don't have a problem getting them from $_POST
however - only the fields that contain numbers and no letters or spaces get inserted into the table and the ones with actual text are not inserted at all. This is the command I use to set up the table:
$sql = "CREATE TABLE `basicInfo` (ID INT, type VARCHAR (100), value VARCHAR (100))";
This is the command I am using to insert data from an array (which consists of values from $_POST).
$sql = "INSERT INTO `basicInfo` (`id`, `type`, `value`) VALUES (2, \"Username:\", ".$basicInfo[1].");";
What is going on?