Como inserir dados em um banco de dados.
Olá, gostaria de saber como coloco essas informações (http://prntscr.com/mxgioc) em um banco de dados.
SQL do banco de dados (Estrutura: http://prntscr.com/mxgm0k):
create table themeloader (id int(11) auto_increment NOT NULL primary key,tema varchar(125) CHARACTER SET latin1 NOT NULL,opcao enum('0', '1', '2', '3') CHARACTER SET latin1 NOT NULL DEFAULT '0'
)
Index.html (Preview: http://prntscr.com/mxglnc):
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>BOT Project - Mabel</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<center><img src="img/logo.png"></center>
<form method="POST" action="botproject.php">
<div>
<label>Tema:</label>
<input type="text" name="Tema" id="tema"><br><br>
</div>
<div class="select">
<select name="opcao" id="opcao" class="form-control">
<option value="0">Selecione uma opção</option>
<option value="1">Quem é</option>
<option value="2">O que é</option>
<option value="3">A história do(a)</option>
</select>
</div><br><br>
<div class="button">
<button type="submit" class="botão" name="enviar" id="enviar">Enviar</button>
</div>
</form>
<center><p style="color:#FFFFFF;"><b>By: Mateus e Vinícius</b></p></center>
</body>
</html>
(Informações BD: [http://prntscr.com/mxgmr6](http://prntscr.com/mxgmr6))Discussão (9)
Carregando comentários...