Questions tagged as 'php'

1
answer

Create action on an html button

I'm new to web development and came across the following problem. I have an input text and a button in html and I need to create an action that when clicking the button, a function is called and in the function, I will make the necessary manipul...
asked by 20.09.2017 / 13:20
2
answers

Record count

I have a table named cad_faltas , it has the fields: id int(11) id_cad_alunos int(11) falta varchar(8) idcurso int(11) The falta field receives the data AWAY and / or PRESENT. The question is, is there any possibility of doing a co...
asked by 20.09.2017 / 16:07
1
answer

Duplicate data when submitting form and F5 and also stores empty values

Whenever I press f5 or click submit, php stores the data again. I know it's a common problem and I've already tried to redirect it with the header, but it's included in the index.php with include. I also know that the msql words should have a...
asked by 01.04.2018 / 23:58
1
answer

Why does Debugger skip line with header, not going to the link?

When I start the php7.0 CLI debugger with this php.ini configuration: ;extension=php_soap.dll ;extension=php_sockets.dll ;extension=php_sqlite3.dll ;extension=php_tidy.dll ;extension=php_xmlrpc.dll ;extension=php_xsl.dll extension=pdo.so exten...
asked by 25.10.2017 / 17:53
1
answer

Warning: array_keys () expects parameter 1 to be array, null given in [closed]

How do I resolve this?    Warning : array_keys () expects parameter 1 to be array, null given in C: \ Program Files \ VertrigoServ \ www \ store \ classes \ Site.class.php on   line 81       Warning : array_values () expects parameter 1 to...
asked by 26.10.2017 / 19:57
2
answers

How to encrypt GET and copy the parameter

I have a feedback email that is sent to a user after the service is completed. This email has 5 links, where each one is the respective service grade (from 1 to 5). I want to direct to the page to update the database, the evaluation of the...
asked by 03.10.2017 / 20:50
2
answers

Download anchor validation

Next,IneedtovalidatethisformsothatonlyafterthepersonregisterscanIdownloadthefile.WiththetagIcanalreadyhavethisvalidationbutImanagedtoputittodownloadonlywiththetag"ancora". <section id="e-book"> <header> <h3>Baixe...
asked by 06.10.2017 / 20:20
1
answer

Displaying a mysql table on the html page

Good morning, friends! Searching, I was able to merge this code from the'testtest 'page to expose the contents of the' witness' table of the 'beja_provida' BD. However, it does not give the expected result. Can someone give me a light, please? C...
asked by 05.10.2017 / 16:43
1
answer

Cookies with cURL help

I need to access a certain URL and load the file 'cookies.txt' the problem is the following I access the URL normally plus the Cookies.txt does not load ... I think the problem is here in this part $cookiepattern = "#Set-Cookie:\s+(?<coo...
asked by 05.10.2017 / 04:53
1
answer

ERROR when creating unique constraint with two fields in Laravel request?

I tried to implement an example that I found here in StackOverflow but without success. RULE: Unique double (user_created - description) / User code you created and Description CORRECT: |ID|USER_CREATED|DESCRICAO| |...
asked by 01.10.2017 / 02:18