Posts by Romario Pires • 831 points
35 posts
-
1
votes1
answer197
viewsA: Call ajax by onclick in SWAL
In the line below, you have specified a name for the function, the function must be anonymous. }, function encerrar(){ It must be so: }, function(){…
ajaxanswered Romario Pires 831 -
0
votes3
answers1010
viewsA: Upload with ajax and java
try putting this attribute: contentType: "multipart/form-data; charset=utf-8" or processData: false, contentType: false
-
1
votes1
answer170
viewsA: 'innerHTML' Undefined
Your code is working perfectly, what you have to make sure is that the HTML does not contain any space or other character type that is not number inside. Example: if your code looks like this:…
-
0
votes1
answer78
viewsA: Select that returns JSON
You are checking whether a variable of type array is true :/, in fact you have to check if it is empty or if it has returned a user. $row =mysqli_fetch_assoc($result); if($row > 0){ //.... } or…
-
0
votes1
answer174
viewsQ: Problem with Spring Security configuration
Guys I’m having trouble in the following scenario: I have two projects, where one is the Resource project and the other project is the authentication server, both projects were built with spring…
-
6
votes1
answer1340
viewsA: How to create a folder for each user in PHP?
If you want to create folder, you will have to define a path or directory where the folders will be created and save in a constant or variable and then take the name of the person and for the…
-
0
votes2
answers555
viewsA: Post via Ajax arrives empty to PHP
PHP only takes the value of the object, in case you are sending an object to php, where it will not recognize the object you are receiving. Utilize: arr.push(seletores[i].value); And send with ajax…
-
1
votes1
answer211
viewsA: Error check existing Pdo record
Must be the die(), because only he can print on the screen.
-
1
votes1
answer58
viewsA: Why, only part of the data, appear in php?
Try to write all data to a variable with $pegaUsuarioRemetente->fetchAll(PDO::FETCH_OBJ). Woe only you perform one foreach() in this variable, this method is simpler and more reliable. Remember,…
-
2
votes1
answer56
viewsQ: Improvement in Chat application
I am developing a chat for my site where a user sends an invitation to the other user, if the same accepted will be open and the system will be checking new messages. For the system to do this check…
-
1
votes3
answers14256
viewsA: How to make a DIV that increases in size every time you increase content?
Depends, the div will increase the width or Height? You can use this for width: min-width: 100px; min-width: 500px; Or for height: min-height: 100px; max-height: 500px; you set a minimum limit for…
-
0
votes2
answers89
viewsQ: Error when giving spaces between Ivs
I’m having a problem for space on some Divs, follow code below: HTML: <div id="feira"> <div class="barraca"></div> <div class="barraca"></div> <div…
-
0
votes2
answers43
viewsQ: Bring select in a row with 2 references
Good afternoon, I wonder if there are possibilities to bring everything in a row with the following tables: Pedidos id id_produto1 id_produto2 id_produto3 Produtos id produto I would like to make a…
-
0
votes2
answers514
viewsA: Padding Bottom does not work
Rafael, use the property overflow-x: hidden; to take out the bottom scroll, and to the element being covered put a margin-bottom only in the last element.
-
0
votes2
answers198
viewsA: How to mount PDO query with items previously concatenated
What you can do is put all the city ids in an array if you have any id, implode, or leave the variable blank. Example: we have city ids: 26,50 and 20. $cidades =($arrayCidade != '' &&…
-
6
votes4
answers127
viewsQ: mount a regular expression
I would like a help from you to assemble an expression to check if there are more than 3 bars inside a url in javascript. example: http://exemplo.com , that he doesn’t take. http://exemplo.com/ola/,…
-
3
votes1
answer63
viewsQ: Bring the Return of a Function to a variable of another Function
I would like to know if there are possibilities to do this: function trazerNumero(){ return 7; } function mostrarNumero(){ numero = trazerNumero(); alert(numero); } $(function(){ mostrarNumero() })…
-
0
votes1
answer736
viewsA: Taking src value of an image to send e-mail in phpmailer
So according to your html code, just take the value of the select layout, because its value is the same as src, due to javascript changing src according to the value of select.
-
1
votes2
answers168
viewsQ: Allow a Function to be called only after a time that page has been loaded
I wonder if there’s a way to allow a Function to be called only after a few seconds. Example I have a function that emits sound when a new message appears it is called, but when I restart the page…
-
2
votes3
answers527
viewsQ: Take data from the page by javascript and convert it to whole
There is a problem, when picking a number within a span by javascript I try to convert it into int with parseint, but nothing. For if I try to make a sum with another number it ends up concatenated.…
-
2
votes2
answers108
viewsA: PHP Ordination
Use a Count to count the number of arrays that contain the $xml variable, use this number to mount one for and mount another array with random numbers with limit number of arrays in your $xml, mount…
-
4
votes2
answers191
viewsQ: Customization scroll bar
Today, can we use CSS only to change the customization of the scrollbar of a DIV? If yes, how can I do it. Otherwise which script is best and how to use it?
-
0
votes2
answers274
viewsA: Use ID generated from one FORM in another and UPDATE in bd
Look do the following, let’s make your code simpler! Create a new file It can be called a connection php connection. $host = "localhost"; $user = "root"; $pass = ""; $conexao = mysqli_connect($host,…
-
2
votes1
answer88
viewsQ: How to protect a service site before launch?
I have no experience in this and I’m about to launch a service site and I was wondering if what I have to do to protect my idea is her patent, software registration or trademark? These are the…
-
3
votes2
answers141
viewsA: SELECT in 2 Mysql tables with PHP
Guys, I got it figured out, All I had to do was use GROUP_CONCAT(); Stayed like this: SELECT pro.id, pro.nome, GROUP_CONCAT(exp.cargo) FROM Profissional pro INNER JOIN experiencias exp ON…
-
1
votes2
answers141
viewsQ: SELECT in 2 Mysql tables with PHP
I have a question when giving a select, because I have 3 tables, they are professionals, experiences, address. Let’s say I have a professional and this professional has more than 2 experiences.…
-
1
votes1
answer101
viewsA: Doubt how to query several tables with a word
Class, I think I got it. It was just to use a little more head logic with the doors or and. SELECT a.id FROM profissional a, endereco_profissional b, historico_escola c, experiencia d,…
-
2
votes1
answer101
viewsQ: Doubt how to query several tables with a word
I am setting up a search system, where the user type in a search box any word, Example "Programmer", mysql will have to search that word in various fields in various table, if by chance he finds…
-
8
votes2
answers2503
viewsQ: Javascript, action on a selected text
People would like to know how to do an action on a selected text in the textarea, for example I selected the word 'hi' and when I click a button with Onlick, change the text to 'bye''. I await the…
-
4
votes1
answer765
viewsA: How to implement a guest user confirmation system by email
You can do the following, create a system where you ask for email and the person’s name, and then create a token with a random number and then encrypt it in md5, save that value, the user’s id, the…
phpanswered Romario Pires 831 -
3
votes1
answer296
viewsQ: How to mount a query with optional conditions?
In the example: SELECT * FROM exemplo WHERE ID in(2, 3, 4) He brings if he has these ID at the bank. How to mount a query which places this condition only if the array in PHP have elements? PHP:…
-
2
votes1
answer592
viewsQ: Problem with form (GET method) and URL Friendly
I have a problem sending a form, because I am using a scheme that changes the pages according to the GET['page'], and I used the user-friendly url to take out all that code to leave only the page…
-
0
votes2
answers1901
viewsA: PHP Logout with Cookies and Sesssions
Our found out what it was, I created a Class systemLogin, and a Function excluirCookies private and another public disconnect, I was called a function from within the class as follows:…
-
0
votes2
answers1901
viewsQ: PHP Logout with Cookies and Sesssions
I’m having a problem when it comes to logout on my site, because when I only use Sesssions it logout normally, but when I use Sesssions and cookies to remind the user, I need to leave twice,…
-
2
votes1
answer183
viewsQ: Doubts about Javascript and HTML
Guys, here’s the thing, I’m trying to make a move only it’s not coming out like I hope. *HTML code * <div id="apresentar"> <img src="img2/fechar.png" class="fechar-foto"> <div…