Posts by user3081 • 667 points
36 posts
-
-1
votes4
answers519
viewsQ: Remove last space from a variable
For example: $name = 'Fulano De Tal '; How to remove that last space, to look like this: (Fulano De Tal) ?
-
0
votes3
answers1324
viewsQ: Select records from one record to another in sql server
I want to select from record 20 to 50 in SQL SERVER, but I’m not getting it! I’m wearing it like this: SELECT * FROM table OFFSET 20 ROWS FETCH NEXT 50 ROWS ONLY But it doesn’t work! I know you have…
-
-1
votes1
answer398
viewsQ: Use several ternary conditions in php
How to use several ternary condition in the same line? Example: echo ($estado == 'SP' ? 'São Paulo' : ($estado == 'RJ' ? 'Rio de Janeiro') : ($estado == 'PR' ? 'Paraná') : 'teste'); That way you’re…
-
0
votes2
answers107
viewsQ: How to clear multiple input fields by classes?
How to clear the value of multiple input fields by classes? Using Jquery? I did so, but did not fuck! form.find('input').not(".class1 .class2 .class3").val('');…
-
-2
votes2
answers263
viewsQ: Clear input with Jquery with more than one class
My input is like this: <input type="text" class="noclear form-control" value="" name="" required> Jquery: form.find('input[class!="noclear"]').val(''); If I leave the input, only with…
-
0
votes1
answer118
viewsA: How to use date table bootstrap
Guys, I managed to fix the error, I simply include the file (ssp.class.php), which I downloaded here: https://github.com/DataTables/DataTables/blob/master/examples/server_side/scripts/ssp.class.php…
-
0
votes1
answer112
viewsQ: How to use Data Table Server Side?
I’m trying to follow this tutorial: https://datatables.net/examples/server_side/custom_vars.html But it is giving the error in the hour that I seek something, or click on the pagination: Datatables…
asked user3081 667 -
0
votes1
answer118
viewsQ: How to use date table bootstrap
I wanted to use this date table, to search a lot of database data. I could, but it takes 12 seconds to load the page. Because you have a lot of data on file. Someone has an example of how you could…
-
1
votes0
answers25
viewsQ: Cut the image sides of a full width slider
How to cut the sides of a full width jquery slider after reaching a certain width of the visitor’s device? Would it be with css? Or Javascript?
-
3
votes1
answer866
viewsQ: Pause or Terminate Youtube Video
Currently I use the following script to pause youtube video: HTML: <span onClick="stopVideo();" class="wmg-close"></span> <div id="player<?= $dAgenda['id'];?>"></div>…
-
1
votes1
answer811
viewsQ: Change php reply email
I’m using the following code: if(isset($_POST['sendContato'])){ $nome = strip_tags(filter_input(INPUT_POST,'nome')); $telefone = strip_tags(filter_input(INPUT_POST,'telefone')); $email =…
-
3
votes1
answer316
viewsQ: Jquery Anchor extremely accurate!
I’m using the following code: <?php foreach($sqlPortfolio2 as $dPortfolio2): echo '<li><a href="#guia'.$dPortfolio2['id'].'"…
-
0
votes1
answer405
viewsQ: Standardize color of textarea letters with placeholder
The color of input placeholder is stronger than textarea! I’m using CSS like this: ::-webkit-input-placeholder { /* WebKit browsers */ color: #757575 !important; font-size: 14px; font-weight: bold;…
-
0
votes1
answer100
viewsQ: Collect data from wordpress database
It has how to make connection in the Wordpress database, and to take the data of some tables of it and to transfer in a Site ?
-
3
votes1
answer8438
viewsQ: How to customize google-Translate on my website?
How to place language flag images, and when you click on the flag, the entire content of the site changes language? I’m using this code: html: <div id="google_translate_element"…
-
2
votes1
answer2432
viewsQ: Sort at the lowest price in a Mysql table
How to list products that have the lowest price for the highest! From smallest to largest! Using PHP and Mysql.
-
-1
votes1
answer66
viewsQ: INSERT in mysql in another domain
Insert mysql into another domain. For example: on my site has the site administrator, and there I can register my products, when registering, will register on my site and on another site outside my…
-
0
votes3
answers3063
viewsQ: Put site path in a PHP include
How to put the whole site path in a include? For example: <?php include "http://www.site.com.br/include/categorias.php"; ?> You can do something like that?…
-
2
votes4
answers4185
viewsQ: How to separate values from a php variable?
How to separate values from a variable and save to separate variables? Example: $valores = '12'; How to separate and store in other variables? So: $primeiroValor = 1; $segundoValor = 2;…
-
0
votes1
answer169
viewsQ: Centering a horizontal div
How to center a horizontal DIV without knowing the width of it. Example: Previous - 1, 2, 3, 4 - Next
-
1
votes1
answer173
viewsQ: Cutting image with PHP
Is there any other code on PHP to crop an image from the bank MySQL? I’m using this, but it’s giving a problem with slider wow slider Follows the code: <?php //<img…
-
2
votes1
answer1379
viewsQ: Select a Mysql table inside a PHP file without refresh
Select Mysql database data inside a PHP file without refresh. Example: <?php // Essa select abaixo tem que buscar a cada 5 segundos sem atualizar a página $selecionaTabela = mysql_query("SELECT *…
-
-1
votes1
answer1456
viewsQ: Upload php file to another server
Upload heavy files to another server using PHP Send Autocad files, and these files are heavy...I wanted to know if there is a way for the user to enter the site, in the sector to send these files,…
-
4
votes2
answers7411
viewsQ: Determine the field in ORDER BY RAND() in mysql
Determine which field of the table will have ORDER BY RAND() Example: display random data according to field (id_category) As I put one: WHERE ORDER BY RAND() id_categoria ???
-
0
votes1
answer268
viewsQ: Flashing image in Chrome
I upload a PHP file that brings me an image in jpg. Code: <?php $url = "http://site.com.br/sistema/"; ?> <script…
-
3
votes1
answer10006
viewsQ: Sort the latest registrations according to the registration date
Sort the latest ads registered in mysql, with the dates closest to the current date using PHP Field type (date) in mysql is (date) This is my query: SELECT * FROM frame_anuncio WHERE ativo = 'Sim'…
-
4
votes1
answer1105
viewsQ: Run function when clicking on "textarea"
How to perform a function when a <textarea> is clicked?
javascriptasked user3081 667 -
-1
votes1
answer2059
viewsQ: Run PHP file without updating the page
I have a list of products, when clicking on some product, will go to another PHP file and do the calculations and go back to the products page. But if I click on a product that is close to the…
-
0
votes2
answers823
viewsQ: Store values in the variable
Store values in a variable by GET Example: $id = $_GET['id']; $dados = array($id); Doubt: How to save all Ids? Because I will use these Ids to identify which product was selected. I created a…
-
3
votes4
answers3403
viewsQ: Check data in the database according to the date
Query data in mysql in the last 3 days, ie display database data from day 15 until today (17/02/2014) I’m wearing it like this: $condicaoData = date('d/m/Y', strtotime("-3 days")); $selecionaTabela…
-
5
votes2
answers24059
viewsQ: View div in Hover
How to display a div, which will have a summary about the movie (text), and a button to (SEE MORE) while hovering the mouse over an image. Example: <a href="#">IMAGEM</a> When hovering…
-
3
votes4
answers5304
viewsQ: How to make an alert with animated echo?
How to make a more animated echo, I am using the following PHP code, which contains a alert() javascript: session_start(); $credito = $_GET['credito']; $soma = @$_SESSION['valor_total'] +=…
-
-1
votes4
answers1519
viewsQ: How to change the appearance of the site according to the device used, without having to script on the client or server?
Someone here knows how to create a responsive site from scratch? Without using a framework like Bootstrap? I need it because I get it layouts in all custom PSD and it would be easier to create from…
-
1
votes3
answers10480
viewsQ: How to store multiple values in a variable?
I’m creating a system with several products, and in them will have a link, so: <a href ="verificar.php?valor=20">Imagem</a> The archive ( verificar.php ) will receive for $_GET the value…
-
5
votes3
answers63205
viewsQ: Image with 100% width
I have the following CSS statements applied to an element: .minhaClass { float:left; width:100%; height:560px; background:url(../imagens/corpo/imagen.jpg) repeat-x top center; } This will happen on…
-
0
votes3
answers3483
viewsQ: How to execute a code by clicking on a link?
I am creating a site that will have a login system. When you log into the site, you will have several products inside, one next to the other... Each product will have its value, and each user will…