Questions tagged as 'php'

3
answers

Multiple UPDATE from a dynamic field

I'm trying to get the% s of% s that comes from checkboxes selected by user (array), and through these id s, make an update to the table, with the following code: $ocs_imp = $_POST['check_imprime']; $contar = count($ocs_imp); $id = impl...
asked by 16.01.2015 / 03:21
1
answer

How to make a script run automatically?

I am making a script to send emails to subscribers, such as a newsletter , however I need it to run automatically and this hourly. As my operating system is Windows and initially I want to test this script locally, I searched and saw...
asked by 22.07.2014 / 05:46
1
answer

Send multiple values in an input to PHP using jQuery AJAX

I have a script that aims to insert multiple items into a list of a form using Ajax. For each element inserted in this list, a next one should be added. After inserting X elements, it should take all values and play in just one input, addi...
asked by 31.10.2014 / 19:57
2
answers

Get a value that is within a span in another site using PHP

I would like to know how to get a value that is inside one of an external URL to use in a given calculation. Example: link I want to get only the value for Soja s / Royalts, which is within this span: 56.50     
asked by 21.07.2014 / 18:52
1
answer

How do I show the result of a SQLSRV query in PHP?

I need to do a calculation via sqlsrv, add a column of values. Here is the code I tried to do: $qryAC = "SELECT SUM(VLRECEITACONT) AS receitaConta FROM [RDO].[dbo].[ANALISE_CRITICA] WHERE CC='$partCC[$i]' "; $stmtAC = s...
asked by 16.10.2014 / 19:59
2
answers

How do I use Google's reCAPTCHA to block a particular part of a page?

For example, I have a website in Wordpress, that the content is shown only after I validate Google's reCAPTCHA, I have already looked for several codes but nothing helped me, can anyone give me a tip? <!DOCTYPE html> <html>...
asked by 25.02.2018 / 22:48
1
answer

Regular expression that accepts letters, numbers, and underline

How do I get the ER below to accept letters, numbers, and underline, and continue not allowing other characters? preg_match('/[^a-z\d]/', $_POST['login'])     
asked by 21.08.2018 / 03:14
2
answers

Is it possible to manipulate SESSION variables to perform SQL Injection?

I am not a cyber attack specialist and I have a small question about the safety of my projects. Basically one of the ways I'm warned of SQL injections is by creating a " treatString () " function, for example, and all data coming in externally I...
asked by 24.07.2018 / 17:28
1
answer

Add path to fileField when clicking image with YII framework

I'm trying to make a fileField schema of the YII framework for when a user clicks on the image that is on the screen, the name of the image clicked will appear in the span and the value of the model in the fileField will receive the image. But I...
asked by 16.05.2018 / 15:12
2
answers

Help in a PHP logic

I have a big problem for me * ini_set('display_errors', true); error_reporting(E_ALL); header('Access-Control-Allow-Origin: *'); # header('Content-Type: application/json'); header('Character-Encoding: utf-8'); define( 'MYSQL_HOST', 'l...
asked by 10.05.2018 / 22:04