Questions tagged as 'php'

1
answer

Problem in recovering data in a large application

My table is constituted as follows: ╔════════════════════════╗ ║ USER ║ ╠═══════════╦════════════╣ ║ Id ║ Integer ║ ║ Name ║ String ║ ║ Address ║ String ║ ╚═══════════╩════════════╝ I have some dat...
asked by 12.11.2017 / 22:59
1
answer

Get server operating system in PHP [duplicate]

How can I get the server operating system in PHP? I would like to return something similar like this: Windows 7 Service Pack 1 x64     
asked by 14.11.2017 / 13:13
2
answers

Registration confirmation email

I made a cpf and email address. I've already put it to validate cpf and such, and I can send the email to the user who put the email there, but I need the registration to be done only if the email actually exists. In the case, would I have to do...
asked by 04.12.2017 / 13:41
1
answer

Using preg_match

With this code I can block special characters in my input , however I want it to still accept . , - and _ how to proceed? elseif (!preg_match('/^[a-z A-Z0-9]+$/', $username)) { echo json_encode(array( 'log...
asked by 06.12.2017 / 17:24
3
answers

Search Database when Select options Select

Good morning. I have a small problem that I can not solve. The situation is as follows: I have 2 selects (state and city), I would like when selecting a state the system would search my DB to find distributors of that state and when selecting th...
asked by 11.12.2017 / 12:05
2
answers

Change input color according to value

Good afternoon Friends I have an input with the name of MARGIN, where a value is displayed according to some calculations that are made ... I need the input to change the color to red if this value is less than 25, if it is bigger it maintain...
asked by 09.05.2018 / 20:21
1
answer

How to do a while with 2 checks

I'm trying to get the while values to stop but it just does not go into while, I'm starting programming so try to help in a simple way Purpose of code: Get 0 of a 1 degree function dynamically ... <?php print("Qual é o expoente de sua...
asked by 13.09.2017 / 23:34
3
answers

Disable button after click

I have a form that sends tans to my database when I click the button.              What can I do to disable the button after clicking? I do not want the button to be triggered more than once.     
asked by 19.09.2017 / 21:07
2
answers

mpdf only displays on firerox

I am using mPDF and it is only generating the reports correctly in FireFox or opening by IE. If I try to open the file with PDF reader it returns the error when loading PDF document. <?php include("../crud/_views/plugins/mpdf60/mpdf.php")...
asked by 19.09.2017 / 16:35
1
answer

Problems with PDO in php

Good afternoon, I'm trying to access my database to get the 12 countries present in the table and return an array with the id and name of the 12 countries but my code is only returning 1 position in the array that is the first country only Anyone...
asked by 04.09.2017 / 18:06