Posts by Gladison • 664 points
80 posts
-
0
votes0
answers21
viewsQ: Send Email to a specific record in the list using Javascript
I have a comment list and I would like to send a specific email to a person on the list, but sending does not happen. When I click on Answer back, the form box to fill the answer normally opens,…
javascriptasked Gladison 664 -
2
votes3
answers213
viewsQ: Why does the DIV break line when resizing?
I have three divs next to each other, but I’ve defined that the middle div (espaco-contato) has a defined minimum width, however, that the lateral Ivds remain responsive. What is happening is that…
-
1
votes1
answer31
viewsQ: The MAIL function sends two emails to the recipient
I use the function mail in several parts of my projects, however, in an application this function sends two emails to the recipient. I have no idea why this is happening. Follow the full code:…
-
1
votes1
answer64
viewsQ: How do I leave my footer fixed below all page content?
I’m creating a footer (orange color), image below: The problem is that it hides part of the page content (a green banner, as can be seen, and on other pages, news and information) How to leave it…
-
2
votes2
answers53
viewsQ: Implement "loading..." message display in Javascript
I have the following code on JavaScript to post the form data on MySql. However, I need you to display a "loading..." message before sending, because I use it to post photos and it takes a while.…
javascriptasked Gladison 664 -
0
votes2
answers483
viewsQ: How do I use javascript to make one div visible and hide another?
Hello, I have 3 div’s: one that works as a button and two other as a color box. I need you to click on div that works as a button to div COLOUR 2 close and the COLOUR 1 be visible. This one works as…
-
-2
votes1
answer61
viewsQ: How to compare variable value with increment operator?
Follows the function: $conteudo = $textodobanco; function addBanner($i) { static $conta1 = 0; $retorno = $i[0]; if (++$conta1 == 5) { $retorno .= '<b>BANNER 1</b>'; } return $retorno; }…
-
0
votes1
answer343
viewsQ: IOS does not apply CSS
This my form is not working on IOS, but on Android is perfect. In IOS it is as if no style has been applied. form.frm-captura{ width: 100%; } input.frmbtncapt{ width: 100%; padding: 10px; font-size:…
-
0
votes1
answer157
viewsQ: How to customize htaccess-friendly url by passing only Slug as visible parameter?
Hello, I seek to customize the friendly url more this way www.portalvidapet.com.br/radium-hotel-em-guarapari without having to pass another parameter visible in the url. For that, I tried to do the…
-
-1
votes1
answer25
viewsQ: Why does php not return the extension of all images when renaming it?
I need to rename images when uploading, however, some images the code can not take the extension to finish the process correctly. Thus ending: maisguarapari_5c4a3bec18563. (i.e., saving the image…
-
0
votes0
answers40
viewsQ: Concatenation OR, AND, ORDER BY and RAND() do not work
I’m with the following SQL: SELECT id,titulo,slug,endereco FROM empresas WHERE (categoria = ".$_GET['id']." OR categoria_2 = ".$_GET['id']." OR categoria_3 = ".$_GET['id'].") AND (status = '1')…
-
0
votes1
answer35
viewsQ: INNER JOIN for more than one field in the same table
I have this structure INNER JOIN that works perfectly for what I needed so far. SELECT categorias.codigo,categorias.categoria,categorias.slug,empresas.cidade FROM categorias INNER JOIN empresas ON…
inner-joinasked Gladison 664 -
1
votes1
answer41
viewsQ: Meta Property is not working on the face
I have the following html structure, but when I post my url on facebook, it does not open the image with the title. But on twitter works perfectly. I color the url www.maisguarapari.com.br face does…
-
1
votes3
answers187
viewsQ: Display record when another table has no reference
I need you to just display some record if the field id table noticias has no reference in the field idnoticia table fotos_noticias. SELECT noticias.id, noticias.titulo, noticias.slug,…
-
0
votes1
answer20
viewsQ: Error creating link dynamically
I got the following Bbcode code that perfectly fits the logic of what I need to create link. Only it presents the following errors: Warning: Unexpected Character in input: ' (ASCII=92) state=1 in…
-
-2
votes1
answer42
viewsQ: My Javascript stopped passing variables when I use User-Friendly URL
I use the following Javascript, and it stopped passing the variables by the parameters when I used Friendly URL. For example cidade='+$('#cidades').val() failed to take the variable value.…
-
0
votes1
answer103
viewsQ: How to enable a button after validation?
I need the button is enabled when the email does not exist in the database. Note that the validation if the email already exists works, I need the implementation to enable the button if the email…
-
5
votes2
answers465
viewsQ: How do I verify registration in real time?
I have a registration system that I need to check in real time if the email exists in the database. But the same is not working, in the <div id="resposta"></div> does not display any…
-
0
votes3
answers2026
viewsQ: How to change the color of the form button with javascript?
I have the following code JavaScript, how do I change the background color of the button when it is disabled? let campoSenha = document.querySelector('input[name="senha_imob"]'); let…
javascriptasked Gladison 664 -
1
votes1
answer522
viewsQ: How to check if the password fields are equal and larger than eight digits?
I got the following HTML and would like there to be a check on javascript to see if in the fields the characters typed are equal and larger than eight digits, to enable the button submit. I have a…
-
3
votes1
answer50
viewsQ: How do I change the color of INPUT when it exceeds a certain number of characters?
I have this CSS of INPUT, and I would like it to change the background color when it exceeds 70 characters. CSS .imv-frm-campo{ width: 95%; font-size: 20px; padding: 10px; box-sizing: border-box;…
-
1
votes1
answer19
viewsQ: How to align DIV s horizontally without them breaking line?
I have the following CSS: div.config-pai{ width: 100%; } div.config-pai div{ position: relative; float: left; width: 20%; background-color:#666; border:none; cursor:pointer; color:#FFFFFF;…
-
0
votes1
answer467
viewsQ: How do I make an INNER JOIN conditional?
I have the following SQL that displays me only properties that have a registered photo, as specified in the lines: INNER JOIN fotos ON imoveis.id = fotos.cod How to display real estate with or…
-
0
votes1
answer1891
viewsQ: Perform two COUNT with INNER JOIN
When using the SQL below to carry out the count of the number of brokers in a table using INNER JOIN, works perfectly. SQL: SELECT conta.acesso, count(corretor.cod) as num_corr FROM conta INNER JOIN…
-
1
votes0
answers34
viewsQ: How do I make a line between word in css?
Hello, I noticed on a site the following style in CSS Between the phrase SALES HIGHLIGHT there are two lines, one on the right and the other on the left, and they adjust according to the size of the…
-
0
votes1
answer27
viewsQ: I can’t send more than one e-mail
I have the following code for sending email, but only in the first email receives the second no. $to = "[email protected]"; $to .= "[email protected]"; $subject = 'Guarapari…
-
2
votes1
answer3842
viewsQ: Opengraph’s metatag og:image does not take the link-specific image
I have the following snippet of code, but facebook is randomly picking up another image that is not part of the specific link to this, the og:image as below. <meta property="og:type"…
-
-2
votes2
answers83
viewsQ: How do SQL sort and randomize at the same time?
I have the following code: (SELECT id, slug FROM anuncios WHERE vum = '$idcategoria' ORDER BY RAND()) ORDER BY publicado DESC I need SQL to sort and at the same time Randomize, only that of the…
-
0
votes1
answer78
viewsQ: How to capture form field with . htaccess?
I’m making my website url friendly, however, I’m having trouble capturing the form search field with .htaccess. All my attempts give 404 error. Form: <form action="busca" method="post">…
-
0
votes2
answers44
viewsQ: Error while performing a SQL filter
I cannot identify the error that is happening in the code below: $bannerguia=mysqli_query($con,"SELECT id, senha FROM conta WHERE senha = '$senhalog'");…
-
0
votes1
answer76
viewsQ: Error while searching in form with Friendly URL
I got the following .htaccess which so far has worked perfectly: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule…
-
1
votes1
answer185
viewsQ: Error to 404 when setting Friendly URL in . htaccess
Is giving 404 error while accessing the Friendly URL I tried to do by .htaccess: RewriteRule ^es/guarapari/([0-9]+)/([[a-z0-9-]+)/?$ empresas.php?id=$1&nome=$2 [NC] .full htaccess: <IfModule…
-
1
votes1
answer185
viewsQ: How do I load CSS when using Apache-Friendly URL?
My CSS does not load the content when I started using the user-friendly URL. Try using the tag <base href="localhost/guiacomercial/" /> and within the .htaccess RewriteBase / 'Cause the…
-
1
votes1
answer48
viewsQ: Overlapping elements with padding
When I use the property padding, does not generate proper spacing on the four sides of the elements. By using the element inspector I notice that there is an overlap of the effect of padding.…
-
1
votes1
answer155
viewsQ: Internal DIV overlaps external
I have a div internal overlapping the external. Behold: Note in the image above that the div external does not involve the whole internal. HTML and CSS .conteudo{ width: 100%; max-width: 1200px;…
-
4
votes5
answers1054
viewsQ: How to make each input stay on a separate line?
I have this HTML and would like each input stay in separate lines, in this case below I had 3 lines, one for each input. *{ margin: 0px; padding: 0px; background-color: #ccc; font-family: 'Arial';…
-
1
votes1
answer49
viewsQ: How do I change the order of the URL Friendly parameters in htaccess?
My URL friendlyl is like this: guaraparivirtual.com.br/news-Gadfly/Moqueca-capixaba-agua-na-boca/9/ I would like there to be an exchange of the order of place of the parameters from the last to the…
-
-1
votes1
answer861
viewsQ: The browser displays my python code instead of running it
When accessing through the browser my Python page, it displays the code and does not execute the script. Follows my code: #!/usr/bin/python # cabecalho que informa o browser para renderizar como…
-
0
votes1
answer814
viewsQ: How to change the default "Select file" label for input file?
I’m drawing up a form with a field <input type="file">. How do I change the default label 'Select file'? See the image below: I would like to change this standard label by a custom.…
-
0
votes1
answer2509
viewsQ: How to change the font size of select options?
I have a select in my form but I can’t change the font size of the options. See image below: How to increase the font size of the list of options? Because I’ve tried font-size and nothing worked.…
-
0
votes1
answer32
viewsQ: My select does not resize to the font size. How to resolve?
I added a select in my form, but when I put the font size of 35px the select does not fit the font size, a cut occurs. See in the image below what happens: I need the font size to be really 35px,…
-
0
votes3
answers60
viewsQ: How to make a form centered on a figure
I have a figure and in its interior a form, the big problem is that when I resize the browser the figure is readjusted perfectly, however the form that is inside it comes out of the object. The…
-
0
votes1
answer92
viewsQ: My SQL does not find accented words
My SQL works perfectly when the word to be searched is not sharp, however, when the word is stressed, there is no result in the search. My database is mysql and in the php admin I made the…
-
0
votes1
answer67
viewsQ: My SQL always adds 24 click to each access instead of 1
I have a script that counts the visits on my web pages and stores mysql, however, it is adding 24 clicks to each access, instead of 1. What’s wrong with this code? Look at the script: <?php…
-
2
votes1
answer88
viewsQ: How to align the display of images respecting the individual height of each one?
The display of my images is irregular. See below: I need them to be displayed in a straight line. I made a montage below to illustrate how I would like them to be displayed, because I know that one…
-
0
votes1
answer315
viewsQ: How to rename files dynamically in upload?
I have the following code and do not know how to change it to dynamically rename the image at the time of upload. PHP <?php $uploaddir = './fotos/'; $uploadfile = $uploaddir .…
-
0
votes0
answers59
viewsQ: At each UPDATE performed of the same text, the accented letter is duplicated
With each update of the same text, the accented characters are duplicated. See in the image below what happens every time I click update. As you can see, the letters that have some kind of…
-
0
votes0
answers37
viewsQ: Error sending form to save
You are generating the following error by submitting my record form: Notice: Undefined index: client in C: xampp htdocs guaraparivirtual Adm-gc write-text.php on line 3 This code below $idcli =…
-
0
votes1
answer336
viewsQ: How to click on a link and make an element invisible using CSS only?
I need you to click this link <a class="close" href="#">×</a> mine figure remain invisible. Using only CSS. CSS figure.pop-up-principal { position: fixed; width: 100%;…
-
0
votes2
answers685
viewsQ: How to align the close button of the pop-up window?
I’m creating a pop-up window in CSS, but the close button is not inside the element where it displays the advertisement in the pop-up. The button is in the far left corner of the site. Note below my…