Posts by Victor Eyer • 1,508 points
76 posts
-
3
votes2
answers140
viewsQ: Classification system
I’d like to bring up the positions. I have no idea how to do it. Below I’ll be giving a demo and my code <?php include("./configs/dados.php"); $ranking = "SELECT * FROM usuarios ORDER BY…
-
3
votes2
answers139
viewsQ: Return record with highest number of appearances
Well, I would like to know how to return the record with the field with the highest number of appearances in a phpMyAdmin database table. See the following image: I would like to get "Joao". I tried…
-
1
votes1
answer3966
viewsA: Adding values in Javascript
The solution was simple, I just created one more function, and called the two functions in onclick. Observe: <script> function somar(){ var gol =…
-
1
votes1
answer3966
viewsQ: Adding values in Javascript
In the following code, by clicking on the input name "goalkeeper" it changes another input with the desired value. The problem is that I would like to put another field that automatically calculates…
-
1
votes2
answers553
viewsA: Change image when selecting radio in form
Well, I want to thank everyone who tried to help me. I managed to solve the problem in the EASIEST way possible. It was really easy, I will pass as I did, but I will not explain, the code is so easy…
-
0
votes2
answers553
viewsQ: Change image when selecting radio in form
Good evening, I’ll provide an image and the code. I don’t know how, and I’d like to learn. NOTE: I don’t want the image to change when I submit the form, I want it to change right after I click on…
-
5
votes2
answers3496
viewsQ: Text that is written slowly, erases and writes another
I would like the script for a text that is written slowly. I found it easily here in Sopt, the link is this: Text That Is Typed Slowly? However, I would like an increment that I didn’t find. Next:…
-
-1
votes2
answers456
viewsA: Replace for html
Hello. You can do to display the user name with php itself, this way: php $nomeusuario = $_SESSION['nome']; html Olá, <strong><?php echo $nomeusuario; ?></strong> seja bem vindo…
phpanswered Victor Eyer 1,508 -
1
votes5
answers10211
viewsA: Spacing between Bootstrap inputs
You should put a !important in your css. This way: .col-md-4 {margin-bottom: 5px;!important} Upshot: When working with bootstrap, remember this. CSS is basically ready. So to edit what already…
-
3
votes4
answers2128
viewsA: How to create a custom context menu?
Well, I use on my site, the complete code is this: <!DOCTYPE html> <html lang="br"> <head> <meta charset="utf-8"> <title>Botão Direito</title> <script…
-
4
votes1
answer2041
viewsA: How to set cookies and set expiration time?
On the page where the user logs in, put the following: setcookie($usuario, $id_usuario, time() + (60 * 10), "/"); That will make it last for 10 minutes. Already in the rest of the page, put this:…
-
4
votes1
answer462
viewsA: How to block Image Hotlinks with warning?
Put this in your htaccess: RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?meusite\.com\.br/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*\.(jpe?g|gif|bmp|png)$…
htaccessanswered Victor Eyer 1,508 -
2
votes1
answer100
viewsA: Redirect with successful/error messages
Use the following function $patual = end(explode("/", $_SERVER['PHP_SELF'])); The php self server will take the name of the current page, not counting the paths (due to explode and end). You should…
phpanswered Victor Eyer 1,508 -
2
votes1
answer149
viewsA: How do I make url friendly in PHP
Well, create a. htaccess file and put the following: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php RewriteRule ^profile(|/)$…
-
-2
votes3
answers772
viewsA: How to manipulate txt lines in php?
For the first question, try to put everything in paragraphs, as follows: $linha = "<p>" .$nome. " - " .$mensagem. "<p>"; For the second, you can put to delete ALL messages with a button…
phpanswered Victor Eyer 1,508 -
2
votes1
answer1245
viewsA: How do I check if an iframe has fully loaded
Hello, just put a window.load on the iframe page, like this On the page containing the <iframe src="SeuIframe.html"> Put the code below inside the tag <script type="text/javascript">…
-
1
votes1
answer151
viewsA: Remove shadow-box and adjust container size
Create a new . css file and make the changes there, always putting ! Important So what to do when wearing bootstrap In the new created file, put this: .jumbotron .btn{ box-shadow: 0 0 0 0…
-
0
votes2
answers1599
viewsA: How to make all images the same size
To change the size of ALL page images at once, try this in your css: img { width: 800px!important; height: 600px!important; } Change the 800 and 600 to the desired values. You can also change the…
-
2
votes2
answers4089
viewsA: How do I put the "like" and "share" button for each blog post?
For the share button, go to your blog’s Edit HTML and look for <div class='post-header-line-1'/> Underneath that, put this: <div style="float:left;padding:4px;"> <a…
-
0
votes3
answers833
viewsA: Jquery modal does not open
Why don’t you try the bootstrap modal, it’s much simpler: <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script…
-
0
votes2
answers171
viewsA: Paging in search failed when switching pages
You’re putting the search field in a form? Try: <form method="POST" action="buscar.php"> <input type="text" name="busca" placeholder="Digite aqui..."> <input type="submit"…
phpanswered Victor Eyer 1,508 -
3
votes4
answers27834
viewsA: Remove edge of button
Try this: .jumbotron:hover { border:none!important; background-color: white!important; } It would be easier if you provided the button code...
-
2
votes1
answer120
viewsA: Leave checkbox fields marked
I don’t know what the system is like, so assuming it’s just a form to check the checkbox, I would do that: <input type="checkbox" id="seg" name="DiaSemana" value="segunda-feira" <?php…
phpanswered Victor Eyer 1,508 -
1
votes1
answer123
viewsQ: System to identify the user owns the PHP + Mysql topic
GOOD AFTERNOON. I’m doing a help forum on my website, and I came across a question. I tried to make sure that when the topic owner had the question answered, he himself could close the topic.…
-
0
votes0
answers16
viewsQ: My page Uga no charset
Without the charset utf-8, my page looks like this: http://i.imgur.com/wy59lje.png Buga where php and html are normal But when I put <?php header ('Content-type: text/html; charset=UTF-8'); ?>…
character-encodingasked Victor Eyer 1,508 -
1
votes2
answers156
viewsQ: Syntax error in SELECT, in PHP
I am putting the following code to make a query: SELECT * FROM tabela ORDER BY coluna WHERE ROWNUM = 5 However, when putting this in my PHP, the following message appears: You have an error in your…