Posts by Alisson Acioli • 5,815 points
323 posts
-
1
votes1
answer387
viewsQ: Does Codeigniter work under Linux?
I’m starting with the Codeigniter Framework and wanted to know if it works on normal linux hosting or will I have to hire a dedicated?
-
9
votes2
answers11971
viewsQ: How to count selected checkbox quantity
I’m trying to make a code that checks how many checkboxes are checked by clicking a button, because I’m making a system that duplicates records. I have a list with several checkboxes, and when the…
-
8
votes1
answer3788
viewsQ: Zipping directory with PHP
I have a code that compacts file and directory. The problem is that it compresses the files and directories that are at the root, but the subdirectories they are not compressed, for example I have…
-
3
votes2
answers1596
viewsQ: Foreach is returning only one record
I have a problem with my code. I have the following code: <?php require('class/habeo.class.php'); $Habeo->DuplicateRegister('contatos', array('id'=>'1', 'id'=>'6')); ?> This class…
-
2
votes0
answers52
viewsQ: How do I get the column names of a table with PHP?
I would like to take the name (only the name) of a specific Mysql table and display with PHP.
-
1
votes0
answers123
viewsQ: How to send SMS via PHP
Is there any class that is known here that performs SMS sending via PHP? Need some Gateway?
-
-4
votes4
answers844
viewsA: rtrim() to remove "<br>" also removes the letter "r" if it is the last letter in the string
Try to use str_replace("<br>", "". $palavra);
-
-2
votes1
answer1619
viewsQ: jQuery click() is not running
I’m trying to do a function in jQuery that by clicking on button he executed the function click() jQuery to take input data and send via post. HTML <input type="text" name="nome"…
-
1
votes2
answers2430
viewsA: Delete files with Codeigniter
To delete only one file: <?php $file = '/dir/src/arquivo.png'; if(unlink($file)){ echo 'Excluido com sucesso'; }else{ echo 'Erro ao excluir'; } ?> To delete multiple files: <?php $dir =…
-
10
votes6
answers4316
viewsQ: Know number of checkbox selected
How many checkboxes is being selected and count. Selected 1, mark 1, selected another mark +1, took 1 mark -1. I would like to count.
-
0
votes3
answers1520
viewsA: Remote PHP access with Ajax - Return is the code of the PHP file itself
You can try using json to see if you can return what you want. $.getJSON("www.suapagina.com.br", function (data) { alert(data.mensagem); } ) .success(function() { alert("Sucesso"); })…
-
1
votes3
answers1520
viewsA: Remote PHP access with Ajax - Return is the code of the PHP file itself
I tried to do so in javascript: function test(){ $.post('http://www.seusite.com.br/servidor.php', {comando:true}, function(data){ alert(data); }); }
-
3
votes2
answers278
viewsQ: Starting GIT from Terminal
I’m trying to give git init to the terminal and when I type in this command it accuses that the 'config' and '.git' folder already exists, etc. Also when I try to use git add * it takes time to add…
-
5
votes2
answers579
viewsQ: Pull PHP information via AJAX with jQuery in json format
I have a code in jQuery that performs the creation of a calendar that you can leave reminders on the date. The code is as follows: var calendar = $('#calendar').fullCalendar({ slotDuration:…
-
1
votes1
answer1330
viewsQ: How to pull emails from my server with PHP
I would like to know how to pull my emails from my POP3 server to a PHP page, that is, pull and display all emails, as outlook does, only I would like to know how to do this with PHP. I searched a…
-
2
votes2
answers2343
viewsQ: Request Method Switching from GET to OPTIONS alone
I have the following code: $(function() { $('#method').change(function() { var method = $(this).val(); if (method == 'GET' || method == 'DELETE') $('#json-group').hide(); else…
-
4
votes3
answers19918
viewsA: How to open a pop-up
Try to use it like this then: <script language="JavaScript"> function abrir(URL) { var width = 150; var height = 250; var left = 99; var top = 99; window.open(URL,'janela', 'width='+width+',…
-
3
votes3
answers1367
viewsQ: How to send my login and password via $.ajax
Hello, I have a link where it opens a modal window (as if it were an "Alert") to enter the login and password. I am using jQuery, the $.ajax{} function to be more specific. I would like to know how…
-
-1
votes3
answers247
viewsA: Table within tabs. Rules
Try to use this code with the modifications I made. http://pastebin.com/cJ2XZB4F <?php echo '<div id="tabs-1">'; echo '<img align="right" src="logos/'.$exibe["Nome"].'.jpg">'; echo…
-
2
votes3
answers247
viewsA: Table within tabs. Rules
To make a link within a echo is simple: echo '<a href="MostrarAlvara.php?id='.$exibe["id"] .'">Ver PDF</a>'; Always close the quotes you opened, so there is no error in your code.…
-
2
votes3
answers247
viewsA: Table within tabs. Rules
Try the code below. I checked some closing errors in ELSE and quotation marks. echo'<p><b>Alvará: </b></p>'; echo '<table> <tr> <td>Número</td>…
-
-3
votes3
answers54929
viewsA: Create HTML table and display data using PHP
Use table creation tags: <table border="0"> <tr> <td>Coluna 1</td> <td>Coluna 2</td> <tr> </table>
-
1
votes0
answers38
viewsQ: HTTP header authentication error
I’m trying to set up a Zopim Reseller API, only I’m facing a problem: Key API authentication and Secret API. I have the following Javascript code: <link…