2
Well, I wanted to know, how could I get the person to send form only within 5 minutes.
<?php
$nome = $_POST["nome"];
$locutor = $_POST["locutor"];
$texto = $_POST["texto"];
$coment = "INSERT INTO `pedidos` ( `nome` , `locutor` , `texto`, `data` , `id`, `num` ) VALUES ('$nome', '$locutor', '$texto', now(), '', '')";
mysql_query($coment);
?>
But this php I put together with the Insert?
– Paulo Cavalcante
@Kloves must put before INSERT because this code stops execution if you have not passed 5 mimutos. I’m assuming that this PHP page only has the code to do the Insert.
– Sergio
Then in case I put an "Else" and put the Insert in?
– Paulo Cavalcante