Posts by Vitor Martins • 150 points
6 posts
-
6
votes3
answers2842
viewsA: Swap the image on smaller screens
An alternative is to create two divs, one with the image to mobile and another image for desktop. In div to mobile put the Bootstrap class .visible-xs-* and in the div desktop to class .hidden-xs.…
-
0
votes3
answers203
viewsA: Problem to send PHP data to database
It is missing a single quote after $text in the query, try to put to see if it works mysqli_query($conexao, "INSERT INTO postagens (titulo,texto,imagem) VALUES ('$titulo','$texto','$imagem')");…
-
2
votes1
answer223
viewsA: Bootstrap menu does not work
In the Nav tag you declared an id instead of a class, whenever you use the bootstrap you should use class. The right one would be: <nav class="navbar navbar-inverse" role="navigation">…
-
3
votes3
answers1435
viewsQ: How do I generate a random negative number?
I cannot generate a random number that is negative, for example less than 0
-
1
votes1
answer107
viewsQ: Root permission to change date and time
I would like to know how to get my script to be allowed to change the date and time of the system without asking to enter the root password?
-
0
votes4
answers2799
viewsQ: String reading with two or more names
How do I read a string with a compound name for example: "Vitor Martins"? I’m doing this program that stores a student’s name and note but it gives a bug when you type two names.…