Posts by Gustavo Hoppe Levin • 795 points
72 posts
-
-5
votes1
answer761
viewsQ: PHP - Taking values from an HTML table and inserting them into a Mysql table
I have a table that is the result of a Mysql query from a database on a server. It is shown as follows, for example: E-MAIL VALUE ------ ----- email1 P email2 P email3 C email4 P email5 C email6 P I…
-
1
votes0
answers227
viewsQ: Making Mysql UPDATE in DB database according to Mysql SELECT in DB2 database
I need to update a field (office) of a table (investor) of the database (B2c) on my website. However, this UPDATE will depend on a SELECT query that is made in another database of another site (both…
-
0
votes1
answer49
viewsQ: Changing content of a TD
I’m trying to get a function to modify the content of a TD cell in my table. I want to go from: <td id="tdDespesas" style="border-right:1px solid #FFFFFF;border-bottom: 1px solid…
-
3
votes1
answer1842
viewsQ: Calling PHP function by BAT file
I need to create a BAT file that should run every 25th day. It should perform a function called emailAniversariantes(), which has been set for programming a website within two files (controller and…
-
3
votes2
answers69
viewsQ: Phpmailer - Sending emails is possible?
Is there any implementation that can be done on PHPMailer so that emails that could not be sent (due to the momentary fall of the server of the site that uses the PHPMailer, for example) can be sent…
-
1
votes1
answer660
viewsQ: Export table content to an Excel file
I wonder if it is possible to create a function in PHP and/or Javascript that allows to export the contents of a table in HTML (table inside a div) straight to an Excel file. I’m trying to take…
-
0
votes2
answers558
viewsA: Problem with Session variable
I found the solution. This Session receives the value of a input whose id is dtIni. Using of $_REQUEST['dtIni'] instead of the variable of Session solved my problem.…
-
1
votes2
answers558
viewsQ: Problem with Session variable
On my website, I have a part of the code where two checkbox options should be shown for the check-in date case with difference greater than or equal to 72 hours (or 3 days) compared to today.…
-
1
votes1
answer1329
viewsQ: Comparison of PHP dates - dd/mm/yyyy
I’m looking to do a PHP date comparison of the type: if Datastart >= Datatoday + 3 days, do such a thing. Otherwise, do nothing. I tried something like this: if…
-
0
votes0
answers83
viewsQ: Javascript - Filling Textbox with numbers, strings and dates in a boleto
I am trying to get a ticket filled automatically when selecting a row from a table. In this case, there are textbox (or text inputs) that must be filled with some values. My function is function…
-
0
votes3
answers296
viewsA: Javascript and SQL - Fill out a boleto with data from a row after selecting it
I found the solution. On the onclick of the View button: onclick='verBoleto("+ data[i]['nossonumero'] +","+ data[i]['valor'] +","+ data[i]['dataemissao'] +","+ data[i]['datavencimento'] +","+…
-
0
votes3
answers296
viewsQ: Javascript and SQL - Fill out a boleto with data from a row after selecting it
On a website, I have the following function in Javascript to bring me in a table the result of a query SQL. function buscaBoletos(){ $.ajax({ async: false, cache: false, url:…
-
1
votes1
answer296
viewsQ: Image Transformation of E-mail Text - PHP and Javascript
On my site (made in PHP and Javascript), I have a routine of sending vouchers (is a hotel client’s site) pro e-mail guest. I wonder if it is possible to turn all the content of the email that is…
-
2
votes3
answers1334
viewsA: SQL query in PHP and date format
I found the solution, is the following (based on another page of the site, made by the previous developer of the same): Dates $de and $ate are transformed as follows, to have separate day, month and…
-
4
votes3
answers1334
viewsQ: SQL query in PHP and date format
I have a PHP function that interacts with my SQL Server. It looks like this: public function buscaRelatorioHospedagem($nome,$de,$ate){ // TODO Essa função pode ser aproveitada pra aba nova $de--;…
-
0
votes0
answers741
viewsQ: Language change in PHP site according to link
I have a PHP site in three languages. I even have a changeLang(lang) function that perfectly changes the language from Portuguese to English or Spanish. However, the link on my page always stays the…
-
1
votes1
answer1299
viewsQ: Creating Schedule to transfer CSV files from Winscp to FTP
I need to transfer CSV extension files that are in a folder of my Linux server (accessible via Winscp by Windows) to an FTP. For this, it is necessary to create a Schedule that makes this transfer…
-
0
votes2
answers86
viewsQ: How to take the file path and insert it into a table?
I need to create a Mysql statement that takes all the file paths of the files in a specific folder and inserts them into a Mysql table. For example, if my folder is called PastaTeste, I need…
-
1
votes0
answers259
viewsQ: Copy directory to another on site
I have a site in PHP and Javascript. I set a button with the following function (found on the internet, called wrench.copyDirSyncRecursive): function atualizaIR(){ dir1 =…
-
0
votes0
answers174
viewsQ: Putting header into CSV file
I have on a client’s page a log generation routine. However, I always need to add a header field on the first line. Here is the function code: public function generateLogPMWeb($action){…
-
2
votes0
answers328
viewsQ: PHP and javascript - Running onclick function properly
Hi, I’m a one-page developer for a client. Inside this page, I put a link in the header (header.php file) inside the DIV structure that is like this: <div onclick="irParaMinhasReservas();"…
-
0
votes1
answer921
viewsQ: PHP use onclick to perform another page function
I have the following link in a header (header.php): <a href="./index.php" id="btnMinhasReservas2" onclick="irParaMinhasReservas()" class="ph00_9"></a> The idea is, when I click on this…