Posts by ivan veloso • 2,900 points
119 posts
-
4
votes1
answer517
viewsQ: Insert "Watermark" on video at time of upload
At the moment I upload simple videos with basic php. I don’t use very complex code, I’m only in the basics! And this basics is practically the following: $mp4 = $_FILES['mp4']; $mpname =…
phpasked ivan veloso 2,900 -
6
votes2
answers1271
viewsQ: Does the memory consumption of a variable increase each time it is used?
I have been trying to understand more about the memory consumption of the created variables. And I even did some tests here on my computer with variables! I then created some variables and used it…
-
1
votes1
answer115
viewsQ: Opening "menu" at the point that was clicked
Well, let’s say I have a link, that link is 150px by 150px. I would like you to click on any part of this link, open a menu, exactly in the part that was clicked, and when you take the mouse over…
jqueryasked ivan veloso 2,900 -
1
votes1
answer2890
viewsQ: How to make a dropdown menu open by clicking on it and closing by taking the mouse off it
I’ve been looking on the Internet about dropdown menu, I found some very interesting, but I did not find any that do what I said in the title of the question. All menus of the genre I found, to open…
-
4
votes2
answers1341
viewsQ: Format echo time number with 'k', 'kk', and so on
In various places on the internet it is possible to view formatting of numbers like "150k", "1kk". Most people know that 150k corresponds to 150,000 and 1kk corresponds to 1,000,000. EXAMPLE: This…
phpasked ivan veloso 2,900 -
3
votes1
answer1791
viewsQ: How to make an animation by replacing images
Has a browser game on the internet it has a feature that I found interesting and would like to know how to do. As you can see in the picture, there are some buildings, some objects and some people!…
-
4
votes1
answer1335
viewsQ: limiting the value that can be entered in the input
I have a php variable that has a value that varies depending on the moment!! Example 1st moment $valor = 300 second moment $valor = 20 3rd moment $valor = 5300 fourth moment $valor = 1300 I also…
-
0
votes1
answer882
viewsQ: create variable from the result of a query and use that variable in another query
is the following, to make a query in the database with php! The code I use is the following: <?php $rs = $pdo->query(" SELECT * FROM licitacoes WHERE ID_USER = '$IDLOGADO' ")->fetchAll();…
-
1
votes1
answer69
viewsQ: Error trying to join 3 tables
I’m trying to unite three tables in my database, being them Propriedades | Licitacoes | Usuarios. Only every time of the same mistake! he is: Fatal error: Call to a member function fetchAll() on a…
-
0
votes1
answer297
viewsQ: How to create a graph and the values shown in it will be in the BD
I have a table in my BD that records a history of users progression. This table consists of the fields ID / ID_USER / NOTA / DATA. Every midnight day these values are recalculated. Assuming then…
-
3
votes1
answer1297
viewsQ: What would be "Server Signature" and how to turn it off?
In some tests found that the "server signature was on", I do not know what this is. What is and how can I turn off this "signature"? In security tests conducted recommend that I turn off this…
-
9
votes3
answers4422
viewsQ: How to toggle text between "show / hide" inside a javascript button
I don’t know anything about Javascript. So even though it’s something "simple" for some people, it’s a seven-headed animal. Here’s the thing: In the following code is a script that I will use that…
javascriptasked ivan veloso 2,900 -
1
votes1
answer1207
viewsQ: How to check if a link still exists and if it can be opened in an iframe
I use iframe in my project to open certain links from different sites! These links are stored in a database, but make a future progression these same links can be changed or deleted, soon they no…
-
0
votes1
answer345
viewsQ: How do I know how many pixels a div has height:100%? And how can I subtract a certain value from that total of pixels and apply what’s left to another div
I don’t know for sure how to do this, but in my case I would like to subtract 80 pixels from a div that has height:100%. I saw that it has to take the height of a div, but I would like to do…
jqueryasked ivan veloso 2,900 -
0
votes1
answer79
viewsQ: Reformulating URL in htacess
I am trying to rephrase the url that causes you to change the page. I have the following URL www.site.com/categoria.php?cat=Humor&page=3 The way above quotes the pagination works perfectly. But…
-
0
votes2
answers560
viewsA: Limit the amount of results that appear in the jquery-Iu autocomplete
I found in English the perfect answer to my problem, was just change the part that displayed the results That <script> $(function() { var availableTags = [<?php echo $atcat ?>]; $(…
-
2
votes2
answers560
viewsQ: Limit the amount of results that appear in the jquery-Iu autocomplete
I’m using the jquery-Iu Autocomplete and everything is working perfectly. However I would like to improve the script at one point. I would like to limit the results. Because if I type To no input,…
-
-1
votes2
answers9379
viewsA: Save cookie and read its value when accessing the website to check if expired
I’m not very good at this, but I think it might help you! <?php // Determinada um nome pro seu cookie $cookie = "4567500"; // Verifica se o cookie nao existe if(!isset($_COOKIE[''.$cookie.''])){…
-
0
votes1
answer248
viewsQ: How to "bypass" a word in the input whenever pressing the space key on the keyboard
As the question already says, I want to "go around" a word whenever it gives a space, as in the following examples: I don’t want anything self-completed, I just want that when the "space" is given…
-
1
votes2
answers1162
viewsQ: Include creates space in Site Layout
I have two pages. One index.php and the other is called menu.php. As the menu is the same and I repeat it on several pages I preferred to do it in a separate document and then add it with the…
-
2
votes2
answers1171
viewsQ: Can you use the same query and define two different "ORDER BY"?
I use the following passage for a query to the database $cs1 = $pdo->query("SELECT TITULO, URL, IMAGEM , TEMPO FROM post ORDER BY CLIQUES DESC LIMIT 5")->fetchAll(); I would like to explore…
-
0
votes1
answer1125
viewsQ: Setting the "upload_tmp_dir" folder of a cloud server
I am trying to upload media to my server with a php code. I have already redone the code a few times and I believe that there is absolutely nothing wrong. I researched on the subject and saw that my…
-
-1
votes1
answer4358
viewsQ: Problem with uploading files to the server
I’m learning to use a server cloud and I’m having trouble uploading files. I made a code with simple PHP and HTML: <form action="" method="post" enctype="multipart/form-data"> <input…
-
1
votes2
answers662
viewsQ: How to select all BD data and do a repeat word count?
Well, the words part is relatively easy. But I can only count one word at a time. It would be possible to do a complete analysis in the database and count all the repeated words, and put the number…
phpasked ivan veloso 2,900 -
0
votes1
answer67
viewsQ: You can make a code in PHP, when uploading the images, host them on the blogger’s server
I have a php code that uploads multiple images at the same time and hosts it on my own server, only I would like to make the server "lighter" by hosting the images on free servers like blogger. Is…
-
4
votes3
answers494
viewsQ: How to "unlock" any text at the time of "echo" and turn each word into a link
I made a database and in this database register a phrase, I would like that when I was going to give the "echo" in that sentence, each word would become a unique link. Ex: recue o código em 4…
-
1
votes1
answer7205
viewsQ: Validation of input with "real time" query to the database, to check whether the information is already registered or not
I would like to do a form validation in real time. For example, I have a input name="TituloFilme" type="text", i in my database I have the following columns ID | TituloFilme . When I am registering…
-
0
votes1
answer1242
viewsQ: Increasing the limit of "file Multiple"
I am trying to upload multiple images and I want the file limit supported at the time of the upload to be 70 arquvios, only this limit is only 6. I thought it was the php.ini configuration, but it’s…
-
1
votes2
answers2003
viewsQ: Shoot event to change slider image by clicking the arrow keys on the keyboard
I am using a slider jQuery, but I would like to improve it in the question Accessibility. I’d like the arrow keys on the left ← and right →, navigate my slider similarly to click the navigation…
-
2
votes1
answer133
viewsQ: Registering multiple images in one post
I’m with a study project that has to create a kind of gallery. Assuming I have a limit of 20 images per post. How to register these images in the database? I thought of two hypotheses. In the first…
-
0
votes1
answer182
viewsQ: Leave the selected image with opacity higher than the others in a gallery
I have a simple gallery, and when you select an image, that same image is loaded via ajax in a div that is positioned next to that gallery. When I select the image only the image changes, only I…
cssasked ivan veloso 2,900 -
2
votes2
answers797
viewsQ: Extract information from a video at the time of upload
Uploading any video is the easy part, but I would like to explore this moment of uploading more. I would like to extract some information from the video at the time of uploading. This information…
-
2
votes2
answers936
viewsQ: Adding values of selected input’s within another input
I have for example 4 input, each input has a specific value ex: *input com os valores <input type="radio" value="1"> <input type="radio" value="2"> <input type="radio" value="3">…
-
2
votes2
answers1539
viewsQ: load a specific form according to the selected radio button
Assuming I have two options at the beginning of a form, option A and option B <label>SELECIONE UMA OPÇÃO</label> <form> <label><input value="A" name="opcao"…
-
1
votes2
answers414
viewsQ: square div with 45º angle
The question is complicated and I believe the answer will be as well. I do not know how to explain very well what I would like to do (and I don’t even know if there is a way), exactly why I put…
-
4
votes4
answers11127
viewsQ: How to hide the Scrollbar, but without deactivating it
I wonder if you can disable the Scrollbar without deactivating it, IE, hide the Scrollbar but leave it working normally, as if he had the show.
-
2
votes2
answers1770
viewsQ: random background-color on div without the same color repeating twice consecutively
Well I want to create a sequence of DIV, only that I want each DIV have in your background-color a previously settled random color, type black, yellow and green, but I do not want these colors to…
-
4
votes1
answer378
viewsQ: div that does not exceed certain limits
Well, on that link :: http://voky.com.ua/crostini/ there is a menu that when loading the page is not fixed at the top of the screen, but when descending the page a little this menu appears and is…
-
6
votes3
answers6948
viewsA: How to crop an image to the center when uploading it
Well, guys, the question was how to cut an image in the center by uploading it. I researched on the Internet and ended up changing my mind and using JCROP, but the question itself had not been…
-
7
votes2
answers2817
viewsQ: Merge two tables with PHP
I have two tables in the database, one listing the posts and the other of registered users. Columns I have in the table of posts: ID || TEXTO || ID_USER || Columns I have in the user table: ID ||…
-
9
votes3
answers6948
viewsQ: How to crop an image to the center when uploading it
In the project here I want to display the images in a dynamic dimension square div where its maximum size is 240 x 240. Assuming a user uploads an image with rectangular dimension (ex: 500 x 280),…
-
1
votes2
answers347
viewsQ: change function the loading of jquery pages for onclick
I’m looking to improve the way pages load from my project. In this project I’m using jquery to load the page into a box when I click on one of the links I make available. In this script it uses the…
jqueryasked ivan veloso 2,900 -
1
votes3
answers795
viewsQ: creating a group of random numbers that are unique
There is uniqid to create a unique group of characters, but this function uses letters and numbers. And I’ve already researched, only I haven’t found anything for just numbers. Does anyone know any…
phpasked ivan veloso 2,900 -
3
votes4
answers3461
viewsQ: How to center a rectangular image on a square div
When I try to place a rectangular image inside a square div the image is cropped evenly, because it cuts only one side. When I mean centering the image I mean distributing the image equally to both…
-
3
votes2
answers836
viewsQ: check whether GET exists or not
I created an array by calling names, within this array I have 3 names $nomes = array ('carlos', 'maria', 'jose') Later on in the code I’m trying to create an if where I check if the GET value exists…
-
11
votes5
answers83787
viewsQ: Passing variables through the URL using friendly URL via GET
I am trying to mess with friendly URL. Before, to pass the variables I used for example: pagina.php?variavel=valordavariavel by clicking on this link I could use a echo and display the variable. I…
-
0
votes2
answers1086
viewsA: Possible conflict between script
$(document).ready(function(){ $('.posts a').live('click',function(){ $('#conteudo.mostrar').load($(this).attr('href')); return false; }); }); that makes solves all problems…
-
4
votes2
answers1086
viewsQ: Possible conflict between script
Good people, I use basically 4 scripts in my project. I have two pages, one where the posts are listed and the other where you view the posts. In the current browsing model, by clicking on any posts…
-
4
votes3
answers2517
viewsQ: How does Youtube know which videos we’ve watched?
The question itself already describes my interest, but what I’m really wanting to know is how youtube stores the information saying that we’ve already watched that video. I thought about storage…
-
0
votes1
answer512
viewsQ: Payment by cell phone credit
Good guys I know that there is Paypal Pagseguro and other sites that offer form of payment as credit card, boleto and others. But I am looking for another method, but I was not successful in my…
online-paymentasked ivan veloso 2,900