Posts by Alisson Acioli • 5,815 points
323 posts
-
2
votes1
answer299
viewsQ: Remove last json item with jQuery
I have json messe format: { "indice1":['nome1', 'nome2'], "indice2":['nome1', 'nome2', 'nome3'] } What I want is when the user clicks on the delete button it deletes the last json item. In the case…
-
4
votes3
answers197
viewsQ: Account with PHP in the order it is in the string
I need an order of reckoning to be in string be done in the order it is in. For example: $string = '(10*10)+(30-5)/2'; I need PHP to interpret this not as a string, but rather as a calculation and…
-
1
votes2
answers229
viewsA: Store database links
Taking advantage of the code of @Allanandrade: <?php function getUrlAtual() { $url = ''; if (isset($_SERVER["HTTPS"])) { if ($_SERVER ["HTTPS"] == "on") { $url = 'https://'; } else { $url =…
phpanswered Alisson Acioli 5,815 -
0
votes0
answers31
viewsQ: Swap sidebar positions directly on phpmyadmin
I’m having a problem in wordpress where it’s not leaving clicar and arrastarto change the positions of widgets (not only widgets but the whole site). I need to change only the positions of 2 widgets…
-
0
votes0
answers98
viewsQ: wp-login redirecting to old domain
I downloaded wordpress to another folder and the problem is that when I log in and click the button to validate, it redirects (successfully logged in) to the old domain. I already switched the…
-
9
votes3
answers7332
viewsQ: How to put scroll at the end of the div?
I have the following div <div style="height:300px;overflow-y:auto;"> ... </div> Inside it will have several texts and will make the scroll appear. When you refresh the page the scroll is…
-
0
votes2
answers2998
viewsA: Take id onclick and send values via Ajax
I usually do as in the example below: <a id="approved" class="flex-icon" data-toggle="tooltip" data-placement="top" title="Aprovar" data-id="<?php echo $row['TasksId'];?>"><i…
-
1
votes3
answers520
viewsQ: List array according to what was selected
I have a selectwith some cellular operators: <select name="valor" id="operadoraRecarga" class="form-control operadoraRecarga"> <option value="claro">Claro</option> <option…
-
0
votes2
answers85
viewsA: Input does not send combobox value
From the code you posted, it seems to me you’re defining the input and the select with the same name. Do so for example: html form. <form action="teste.php" method="post"> <table>…
-
-1
votes1
answer228
viewsQ: Format number from 3200 to 3,200 with PHP
I have to transform values like: 3200 5000 10000 13000 100000 in 3.200 5.000 10.000 13.00 100.000 I tried to use the function number_formatof PHPbut I could not do it correctly. How can I solve this…
-
3
votes1
answer270
viewsQ: SQL does not return all results
I have 2 tables in Mysql, a call municipalities and another call municipios_ibge both have a column called municipality that guards the municipality of each city in Brazil. I have to do the…
-
3
votes2
answers1635
viewsQ: z-index does not work on link
I’m having a problem creating a <div> masking and a link to disable this mask. In another layout that I had worked normally, now that I am performing the exchange it stopped working. I have…
-
1
votes2
answers1578
viewsA: move_uploaded_file failed to open stream: No such file or directory
Since it is Windows try to put the absolute path, for example: C:/folder/where/Voce/will/save/ Also, check that this folder has full permission (0777) The error that returned to you "failed to open…
phpanswered Alisson Acioli 5,815 -
0
votes1
answer60
viewsQ: Take part of the SVG ID content with PHP
I have a file SVG and in it has several paths tagged and within the tag has the attribute id which in turn has the name of the state and also the municipality (which is what I need to take). I would…
-
3
votes2
answers326
viewsQ: Start function and run function again by clicking the button
When the page fully loads it starts a function, I would like when clicking a button that same function initializes again by passing a text like Query String. I have the code:…
-
27
votes1
answer20057
viewsA: What do these words mean in Git/Github: Fork, clone, track?
Repository Repository is where your files are with commits, branchs, etc. Anything referring to git will be in this folder, usually called .git which is the repository. Fork Explaining in my words,…
-
0
votes0
answers728
viewsQ: List current week days with PHP
I have to make a calendar with PHP and is almost ready, the problem is just that for example, today (28/07/2016) the week in the calendar begins at 01/08/2016 and the right one should be 25/07/2016…
-
2
votes2
answers621
viewsQ: Pick up all hours that are between start time and end time with PHP
I’m developing a module and I need to take every hour between 2 hours, initial and final. Example: <?php $hora_inicial = '08:00'; $hora_final = '15:00'; ?> Then you’d have to list 08:00 09:00…
-
0
votes3
answers14234
viewsQ: Remove options from select with jQuery
I’m trying to take out all the option's of a select I have, but I’ve used up all the code of the jQuery but they don’t come out. I’m making a filter where the person will select a city and after…
-
-1
votes1
answer585
viewsQ: Split table into 4 columns with PHP
I have the code below that prints from 28 to 31 lines (according to the month) and wanted instead of printing 1 below the other make 4 columns of 8 more or less for the layout to be better. My code…
-
0
votes4
answers437
viewsA: Error checking IF with array in PHP
I tested the following code and worked correctly: <?php $matriculas = array(array('chave'=>1), array('chave'=>3)); foreach($matriculas as $matricula){ if(in_array(1,$matricula)){ echo…
-
0
votes2
answers2057
viewsA: Upload images to Codeigniter
Returns an error ? Try this code: <?php public function add_images_construcao() { $this->load->library('upload'); if($this->session->userdata('logged_in')) { $session_data =…
-
1
votes1
answer417
viewsQ: Remove bar values from graph
I need to take the bar numbers off the chart I’m using, but so far I haven’t found which option I do this with. I’m using the Highcharts. Follow the image ] Follows the code: Highcharts.Chart({…
-
0
votes1
answer42
viewsQ: Traverse elements and perform same function for each of them
I’m doing a gallery where they’ll have a button next to and previous. When you click one of these two buttons, you will execute the function that is up to each of them to perform. There will be more…
-
4
votes5
answers1744
viewsA: Difference between back-end and front-end?
Front-End The front end would be the visual part of the site or system. When we say "I will develop the site front-end" it means the same thing as "I will develop the site’s HTML, CSS and/or JS".…
-
0
votes2
answers89
viewsQ: Changing top of a cakephp page only
I picked up a website for maintenance and he’s on CakePHP (framework that does not work). It does some routes for all the files that are inside the folder view/pages Routes.php…
-
2
votes3
answers50
viewsA: Comparator difference in php
== checks whether the conditions under which the comparison was made are equal, no matter the type, for example if(true == true) // Verdadeiro if(true == 1) // Verdadeiro === it checks whether the…
phpanswered Alisson Acioli 5,815 -
0
votes1
answer62
viewsA: Add option to select
Try it this way: $('#cidade').append('<option value="<?php echo $cidade["id"]; ?>"><?php echo $cidade["nome"]; ?></option>'); Or $('#cidade').append($('<option>',…
-
1
votes1
answer285
viewsQ: Fixed footer below a form
I’m having a problem with the code of this site www.forcaemovimento.com.br I have a form that has some div’s with position:absolute to do the side effect. The problem is that the footer is behind…
-
1
votes0
answers72
viewsQ: Overlay links above the Fixed mask
I have to make an effect where the user enters and click on the link to turn on the light and when to leave turn off the light. The only problem for now is that the mask stays on the screen normally…
-
0
votes1
answer4837
viewsQ: Zoom Effect on DIV
I need to do an effect like this page http://www.kanui.com.br/roupas-femininas/blusas/ . When you hover over the product (DIV) it gives a zoom effect and raised. I tried to do so: HTML <div…
-
1
votes0
answers139
viewsQ: Zoom does not happen correctly when loading Elevatezoom page
When I open the page with the plugin elevateZoom (plugin to zoom image by passing the mouse) it normally displays the images according to what it has to be, but the problem starts when I hover the…
-
3
votes3
answers1106
viewsQ: Button diagonally only the left side
I have to make a button like this in CSS: I know I can do this by cutting out the image and putting the input as image but I wanted to do it in CSS. I found a way that ALMOST would help me that…
-
1
votes1
answer717
viewsA: Login system with permission levels
Try: <?php session_start(); $nivel_necessario = 1; // Checks if there is a session variable that identifies the user if (!isset($_SESSION['usuario']) OR ($_SESSION['tipo'] <…
-
2
votes3
answers44
viewsQ: How to order from what has more records to what has less
I have a table where it will be stored id_produto and ip . I will assemble a "module" where the system will pull some of the products that have had more visits, so what I need to do is pull the…
-
0
votes1
answer441
viewsA: Update Mysqli Data
<?php $marca = trim($_POST["marca"]); $tipo = trim($_POST["tipo"]); $quantidade = trim($_POST["quantidade"]); $atualiza = mysqli_query("UPDATE cigarros SET marca_cigarro = '$marca', tipo_cigarro…
-
2
votes2
answers177
viewsA: Detect if URL is a URL shortener
What you can do is insert into a array or MySQL (depending on the type of language you will use) some of the URL’s that are shortened. For example goo.Gl, tinyurl.com, etc.. A code made with PHP for…
-
0
votes1
answer28
viewsQ: Old directory still remains
I took a project made in CakePHP from an old server and played on a new one, but the old server path seems to remain in the script. I played all the files in the new and when I enter the URL, it…
-
0
votes0
answers239
viewsQ: Incorrect redirection on hosting / files
A customer’s website started to give "dick" some 3 days ago. The site is http://upimob.com.br/ . When you enter it, it redirects you to a briefcase called "index.html". Folder that has never been…
-
0
votes2
answers44
viewsQ: Search for more data after finding nothing related to ID
I am making a 4x4 matrix system for a client and I am having a difficulty in the following question: The system has to check if the indicated to be checked already has 4 people in the network, if…
-
0
votes2
answers336
viewsA: How to update records marked with checkbox at a while
From what I understand you want to take the values that are in inputs of the kind text according to the checkbox marked. For this you have to see if the corresponding checkbox has been marked and…
-
1
votes1
answer74
viewsA: recover data in a list for editing
I think the easiest way is this: Save all cities/states in a separate table in the database. Let’s assume that this table is formed by columns: id | City | UF So here’s what I’d do: <?php $query…
-
1
votes2
answers646
viewsA: Automatic PHP function
Use the CRON! Making it clearer, the CRON It’s like I’m a person who will enter the link you program from time to time. My tip for you is to use a hosting that is Linux, because most have the CRON.…
-
1
votes2
answers360
viewsQ: Replace CRON
I made a script PHP which has to be executed at all times, usually from 1 to 1 seconds or at most 2 to 2 seconds. The problem is that I have configured several command lines in CRON to run every 1…
-
0
votes1
answer726
viewsQ: Read Feed (rss) description with PHP
I’m trying to get a description of feed to display on a site I have to do, but when trying to catch it returns to me as empty. When I see the source code of the link that the feed is in, the…
-
0
votes1
answer58
viewsA: Function only executes 1 time
Solution I traded $CI->load->library('image_lib', $config); For $CI->load->library('image_lib'); $CI->image_lib->initialize($config)…
-
1
votes1
answer58
viewsQ: Function only executes 1 time
I created a library that resizes an image that I enter the name, but it’s happening that I need the same image resize to 3 different dimensions, so I made the code php image. (library) <?php if (…
-
-2
votes1
answer61
viewsQ: take input ID values
I have to do an auction system and am planning how to make Countdown for several products at once, each with its number of seconds. I’m thinking about doing it with PHP and jQuery. The problem is…
-
1
votes1
answer239
viewsQ: Show image inside mobile bootstrap menu
I need to make sure that when the user is on a mobile/tablet/ipad inside the menu (those 3 scratches) an image like the Google menu appears. That’s the picture of how I have to leave: Does anyone…
-
0
votes0
answers133
viewsQ: Modal interfering with the scrolling of the page
I’m having a problem with modal, because I have a modal with several links and by having several links it creates a scrolling on the page, until then it is normal. When you click on one of these…