Posts by Alisson Acioli • 5,815 points
323 posts
-
4
votes1
answer371
viewsQ: Set Pagseguro API delivery address
I have to pre-set the delivery address of the pagseguro in my code PHP. The problem is I’ve tried and I can’t, what I can do is just set the billing address. My code: $paymentRequest = new…
-
1
votes1
answer42
viewsQ: Check 2 values after . (point)
I am developing a code where I have to calculate daily parking. In case the user selects for example: From: 05-11-2015 15:00 Until 06-11-2015 15:00 The value to be returned is 1, that is, 1 night.…
-
3
votes1
answer199
viewsQ: Function file() php does not pick line by line
I have a system that is going through a problem, one time it reads line by line from a file, but when I send another file of the same type and with the same content (only a few different things) it…
-
7
votes2
answers18567
viewsQ: Pick select selected (only picking first value)
An Alert is displayed (with the sweetalert plugin) and in that Alert has a selectwith names. After selecting the name, the person has to click the button Add, when the person clicks the function of…
-
1
votes2
answers157
viewsA: How to save a file in Vim
@RESOLVED I just typed in the cron task, then pressed Esc and typed :wq
-
-4
votes2
answers157
viewsQ: How to save a file in Vim
I am logging into the UOL hosting by SSH to schedule a task with cron. I can type in the schedule, only I don’t know how to save, give a CTRL+S on the terminal I think it doesn’t work and I don’t…
-
0
votes3
answers5980
viewsQ: Column Size with Datatables
I’m using the plugin DataTables to paginate a record in a panel. The problem is that this table has 5 columns, the last one is called action where there are 4 links (currently one below the other…
-
0
votes2
answers219
viewsQ: Error using $this in static function
I’m trying to use a class function as follows: $database = database::select("SELECT * FROM eventos"); When I run the code, it returns the error: Fatal error: Using $this when not in Object context…
-
2
votes2
answers302
viewsQ: Codeigniter session expires quickly
I made a control panel for a customer and in this panel my client can edit the products of the site. After the customer Edit a product and click on Save, When the client will try to edit more fields…
-
0
votes4
answers935
viewsA: How the header() function works in PHP
Try it this way: if(!isset($lRet)){ // Volta para o cartão eletrônico. header('Location: '.$_SESSION['CFG_DIR_ROOT'].'index.php'); } Always remember to put session_start() in the first line of the…
-
0
votes4
answers1708
viewsA: Delete only selected PHP checkbox
Use this and it will definitely work: <form method="post" action="limpar_selecionados.php"> <?php $query = mysql_query("SELECT * FROM loja WHERE categoria = 'NOTEBOOK' ORDER BY nome ASC…
-
1
votes1
answer275
viewsQ: jQuery does not add "+"
I’m making a shopping cart with jQuery. The cart works like this: It has the products and all the values of each one. It has a field that changes the quantity. It has another field also of freight.…
-
1
votes0
answers120
viewsQ: Marker displays wrong infowindow
I’m using the Google Maps API to create Markers at addresses I report in the archive js. Next to this API also has the autocomplete to complete the address I’m typing on input. The script is working…
-
0
votes1
answer360
viewsQ: Marker Google Maps pulls only 1 address between several
I’m using the Google Maps API to make a map with markers on top of the address I report and also an auto complete on input. The problem is that if I put for example my home address in the input and…
-
0
votes1
answer96
viewsQ: Data returning with space
I’m making a call ajax with jQuery in a controller on CodeIgniter. The problem is that when the jQuery returns me the data, it is coming with some spaces in front of the result, getting for example:…
-
2
votes1
answer44
viewsQ: Select records in order
I’m making a virtual store from scratch and the customer asked me to make the following logic: Select first available products with photo Then select the available ones without photo Then select…
-
0
votes1
answer53
viewsQ: Menu does not change width
I’m making a menu vertical and putting the color black as background. What I’m going through is I want to leave a fixed width of a 200px for each line of the menu, only it does not change. It leaves…
-
0
votes0
answers251
viewsQ: Form does not send POST
I am developing a data import system for XLS to Mysql. The system is practically ready. I did a test with a file xls 24kb and successfully exported without any error. The problem is that I have been…
-
2
votes1
answer647
viewsQ: Bootstrap changing color in print
I made a report system that is displayed to make printing on A4 sheet. I put some edges on it to make printing. The problem is that at the time of printing, it prints everything black. The problem…
-
0
votes3
answers88
viewsA: PHP and database
If the file link is complete with http://... use VARCHAR sized 250 (maximum supported in a VARCHAR field). If you see that the field is too long and exceeds 250 characters, use TEXT that supports…
-
1
votes2
answers143
viewsQ: Javascript does not take clicked link with the same ID
I am putting a script to copy the link to clipboard using the plugin ZeroClipboard. The problem is that I have a list with several links that comes from MySQL. And in the loop of the list comes…
-
0
votes1
answer1829
viewsQ: Dropdown menu with Bootstrap
I wanted to know how to make a menu that is dropdown, when it is accessible in mobile continue dropdown. I have the website www.ktfdistribuidora.com.br, in the "products" tab is a dropdown. In…
-
1
votes0
answers105
viewsQ: Wordpress does not list posts correctly
I’m having a problem in Wordpress, a client passed a theme for me to install in Wordpress, he bought and passed me, I just played in Wordpress themes folder. What happens is that when you list the…
-
1
votes1
answer573
viewsQ: Add values from the database column
I’m making a reporting system and the bank will have, for example: > - visualizacoes | 300 > - clicks | 20 > - data | 2015-06-03 > - visualizacoes | 230 > - clicks | 3 > - data |…
-
1
votes0
answers61
viewsQ: Run controller from an external site
I have the following problem/question: I have the Wordpress installed and the CodeIgniter also. In Codeigniter I have to make a function that add +1 in the database when a category is seen in the…
-
1
votes1
answer243
viewsQ: .htaccess does not allow entering folders
I have a website in Cakephp and its due htaccess correctly. The problem is because I created an additional domain in the hosting and as usual, it creates a folder in the public_html to put the files…
-
0
votes1
answer150
viewsQ: CSS is not being loaded
I have a client’s website http://suprimark.com.br/ it was working normally, but when the service agency was accessing, it appeared like this, without css, and it has calls to the files .css. I have…
-
0
votes0
answers195
viewsQ: Navbar Bootstrap and Dropdown
I have a menu that contains submenus. When the resolution is mobile it only displays the menus and when I click on "products" it does not open the submenu it has on it, it is closed. What can be ?…
-
5
votes4
answers4688
viewsQ: Codeigniter 3.0 giving 404 not found
I installed the Codeigniter 3.0 in my apache and when I have access http://localhost/Azzunet/login he returns me error 404 not found. The files of controller is correct and views also (only has…
-
3
votes1
answer490
viewsQ: View routes in Codeigniter
I downloaded a real estate script that was made with the Codeigniter, the problem is I’m trying to see where the controllers and views of it, because I went in the folder application/controllers and…
-
4
votes3
answers1722
viewsA: In PHP, does date() take server or user time?
It refers to the server date. To adjust to a specific and correct date, use the function date_default_timezone_set, an example of working with São Paulo time <?php…
-
4
votes5
answers3697
viewsA: How to import a variable within a function of a class?
If the value is already within the class class CreatePaymentRequestLightbox { private $valorTotal = '150.00'; public static function main() { $pedido_total = $this->valorTotal; In case you go get…
-
3
votes2
answers372
viewsQ: Calculate value according to selected dates
I have to make a code that calculates Reais according to 2 dates reported. I have 2 inputs of the kind text to inform a data in format dd/mm/yyyy. The input To is from data inicial and the B is the…
-
0
votes0
answers124
viewsQ: dataTables jQuery does not work properly with accentuations
I’m using the plugin dataTables of jQuery and the problem is happening because of accentuated words. For example, there are several items in the list, and one of them is called coffeehouse. In case…
-
2
votes1
answer387
viewsQ: CSS Disfigured mobile menu
When the site gets responsive the menu gets that button to open a menu. The problem I’m going through is the question of CSS him. He should have a style, cute, stay in block, only he stays that way:…
-
1
votes0
answers59
viewsQ: Error 500 when loading page
There is a client who sells real estate and the real estate data is taken from an external json link. The system is working, but the system takes time because it is TOO much data. It spends about 1…
-
0
votes1
answer86
viewsA: Jquery json with Indice
Try it like this $Array[$estado] = array( "estadoT" => "$estado", "valorCap" => "$valorCap", "valorExcedCap" => "$valorExcedCap", "valorAloremCap" => "$valorAloremCap", "prazoCap" =>…
-
1
votes1
answer406
viewsA: Site is very slow
Try to close the PHP connections as soon as you finish making the query(). jQuery/Javascript put in a separate file saved with extension .js. Beware of extreme spaces (no need). Look at your code…
-
1
votes3
answers600
viewsA: Can anyone cite examples for a user’s status? (online & offline)
Use TIMESTAMP I believe that it will be easier for you to interact in your system without errors. Gmail seems to do this check with the user’s mouse pass (mouseover), because when you are for…
-
3
votes2
answers2198
viewsQ: Navbar bootstrap getting behind the banner
I’m putting the navbar Bootstrap on a website, only when I click the button to open the menu, the menu appears behind the banner on the site. I took the position:absolute that has in the col-md-12…
-
1
votes0
answers33
viewsQ: Use callback output in a javascript variable
I have a variable within the success of function $.ajax() only that I need the contents of that variable in a part of the code, outside the $.ajax(). I’m trying to create the way: jQuery.ajax({ url:…
-
0
votes1
answer383
viewsQ: Error if user does not release Geolocation
I’m putting geolocation on a client site, only I’m having a problem doing some function that calls a alert() if the user does not give permission for the browser to use geolocation. What I want is…
-
1
votes1
answer57
viewsQ: Link does not click in small dimensions
I’m having a problem with the links (<a href=""></a>) because on normal screens (desktops) it is normal as it should be, now when the resolution is lower type mobile or tablets, the link…
-
0
votes1
answer386
viewsQ: Color of the Collapse menu
I have a problem with the bootstrap menu when it’s "collapsed". When the screen size is for example a mobile, it gets that button to click and open the menu. The problem is that if I leave the tag…
-
0
votes1
answer832
viewsQ: Responsive column
I have a Wordpress site to maintain and am facing a responsive problem. I have 2 columns, "main content" and "sidebar": <div class="col-md-12 col-xs-12"> <div class="row"> <div…
-
4
votes1
answer1006
viewsQ: New row in table every 3 columns
I have a table that has to have 3 columns per row. The data of the 3 columns I take from the database. My problem is that when I display 3 columns, I want the next results to appear in the bottom…
-
0
votes0
answers44
viewsQ: Redirect error
On a client server you have a project in Cakephp, I created a folder called halldafama at the server root. I need to access this folder, only when trying to access me returns: Error: The requested…
-
3
votes3
answers3638
viewsQ: json_decode returns null
I have a JSON file that is at that link. I need to take and display the data in PHP, I have the following code to test: $linkAnapro =…
-
1
votes1
answer112
viewsQ: Redirect URL to htaccess file
I need to make sure that when they access my site like this http://www.meusite.com.br/guarulhos redirect (or open) the page http://www.meusite.com.br/guarulhos.asp . I’m trying with htaccess…
-
2
votes2
answers1749
viewsQ: Turn string into number
I have a problem that for many are simple, I have a code that takes the value of a input of the kind hidden and when I pick up this amount, I add +1, ie if the value is 3 it add +1 and have to stay…