Posts by Giovana • 13 points
5 posts
-
0
votes2
answers141
viewsQ: Textarea with value that cannot be changed
So I have a textarea like this: <textarea id="mensagem" name="mensagem" type="text" style="width:400px; font-size:16px; height:100px; border-color:lightgray;" placeholder="Um texto qualquer"…
-
1
votes1
answer36
viewsQ: Post registration error with empty text
The registration code of the post is this: <?php if(isset($_POST['cadastrar'])){ $titulo = trim(strip_tags($_POST['titulo'])); $data = trim(strip_tags($_POST['data'])); $descricao =…
-
0
votes0
answers52
viewsQ: How to add the value of an id_UsuarioLog to a FK?
Hello... Well, supposing a user wants to comment on any post. The system should: Check if the user is logged in, otherwise he will receive a script "you must be logged in to comment". If the user is…
-
0
votes1
answer58
viewsA: Comment system with foreign key "autor_coment"
This is the registration code of the comment: <?php include 'admin/conexao/conecta.php'; if(isset($_POST['comentar'])){ $comentario = trim(strip_tags($_POST['comentario'])); $insert = "INSERT…
-
0
votes1
answer58
viewsQ: Comment system with foreign key "autor_coment"
Has a comment table with the following attributes: id (int not null), comment (text not null), data_coment (timestamp not null) and autor_coment (int not null). The autor_coment is a FK referencing…