All Questions

3
answers

Include / Require 'file.php' or Include / Require ('file.php')

I know PHP allows the inclusion of files in both modes, but I would like to know the correct way to use these functions, or if both modes are correct.     
asked on 11.04.2014 / 19:25
1
answer

Comparison: CTE vs CURSOR

I do not know if this will be a question that many pose, but I have always had it in mind almost always. Normally when I need to deliver a corrective script to a client, used to only run once, I use a CURSOR , perhaps because it is mo...
asked on 24.12.2018 / 12:39
2
answers

Parse error given when checking variables with empty () function

I have a problem with my PHP when I pass more than one variable for it to check separated by a comma it generates a parse error. Look at my code below: if (isset($_POST['btnCriaTempo'])){ $ordem = trim($_POST['ordem']); $time...
asked on 10.01.2014 / 00:14
2
answers

How to prevent CSRF attack without PHP frameworks?

I have the following files based on other scripts I've tried to study: authenticate.php <?php session_start(); if (isset($_POST['token'], $_POST['login'], $_POST['senha'])) { $token = empty($_SESSION['token']) ? NULL : $_SESSION['to...
asked on 23.02.2016 / 00:54
3
answers

Communication with PagSeguro

I need to make an application that communicates with the pagseguro. In other words, it makes the purchase, I send and then I need to automatically update the bank when I make the payment. Until I send it to the payer I have a notion. My qu...
asked on 07.10.2014 / 14:03
3
answers

Function as parameter in functions in jQuery

I always used some functions without really understanding what was happening and where these parameters came from. I say the following: Example 1: $("#link").on("click", function(event){ event.preventDefault(); }); Example 2: $.get...
asked on 22.01.2015 / 12:27
1
answer

What is the purpose of the "use" command and what is its relation to anonymous functions?

I'm doing tests with a RESTFul API that I'm creating using the Slim micro-framework, and in one of those routines that is responsible for executing a particular action, I was struck by a command I did not know, which is the command use ....
asked on 18.12.2016 / 01:40
2
answers

Circle with curved edge

I was tasked to make a website, and I'm having a hard time doing a detail in CSS I need to make a round border that has a curved end, for you to understand better, I will show photo and post my code What I need (Photoshop) WhatIhave Iwoul...
asked on 18.05.2018 / 04:02
2
answers

What is the difference between the TSQLDataSet, TSQLQuery, TSQLTable, and TSQLSimpleDataSet components?

In Delphi, following the line of the TTable and TQuery components in the component palette BDE we also have similar components in the dbExpress palette which are TSQLQuery and TSQLTable , and we still hav...
asked on 23.04.2014 / 05:00
2
answers

Update with Case When you need to where?

UPDATE bethadba.FOFILHOS SET CPF = CASE WHEN CODI_EMP = 61 AND I_EMPREGADOS = 156 AND i_filhos = 1 THEN '00551366133' WHEN CODI_EMP = 57 AND I_EMPREGADOS = 290 AND i_filhos = 1 THEN '00636170993' WHEN CODI_EMP = 61 AND I_EMPREGADOS = 333...
asked on 11.06.2018 / 19:20