It was not for lack of trying but I'm having problems with one thing that I think can be considered simple. Well the project is a right site? It will be a merchandise and only query site. I created a Product Registration page. Register
$host = "localhost";
$user = "root";
$pass = "";
$banco = "produtos";
$conexao = mysql_connect($host, $user, $pass);
mysql_select_db($banco) or die(mysql_error());
$nome=$_POST['nome'];
$especificacoes=$_POST['especificacoes'];
$preco=$_POST['preco'];
$url=$_POST['url'];
$sql = mysql_query("INSERT INTO cadastro(nome,especificacoes,preco,url)
VALUES('$nome', '$especificacoes','$preco','$url')");
echo "feito";
In this page the registration is being done successfully. But I do not know how to display it by ID (Note that every registered product has auto-incremental ID), I would like to display these pictures in boxes in code.
<div class="thumbnail"><!--Centraliza a imagem dentro do box-->
<img src="Aqui seria a imagem cadastrada" alt="ibagem">
<div class="caption"><!--Esta div cria o que esta escrito abaixo da imagem-->
<h3 align="Center">Aqui o nome cadastrado do produto</h3>
<p align="center">E aqui as especificações cadastradas do produto</p>
<p align="center"> <a href="produtos.html" class="btn btn-default" role="button">Especificações</a></p>
But I do not have the slightest idea how to do this or how to make ID 1 appear next to ID 2 next to ID 3, if someone can help me, I would appreciate it.
And I'm sorry if I'm posting wrong, or if this question has already been answered, but I can not find it and after almost two months of searching and only finding solutions like outside programs (like wordpress), I did not know where else to turn.