Questions tagged as 'php'

1
answer

jQuery cutting words with space

I have a screen where the lines are loaded according to the data of the database and for this I have a PHP + jQuery and the like for the creation of the same one. What happens is that the array that sends the data comes correctly, but at the tim...
asked by 17.04.2018 / 14:52
2
answers

How does the PHP runtime work?

I've always been interested in how long my code runs. The problem is that I do not quite understand how PHP code execution works. Below are the questions: On the server, does the PHP code run on every request or is it always running? If...
asked by 19.02.2018 / 20:04
1
answer

How to save in MySql all data inserted in a form-control

Well, how can I make a script to save all data just after insertion. In case the view would be this. Afterenteringandtypingenterthedatawouldalreadybesavedinthebd.Whatisthebestwaytodothis?Hereistheexcerptfrommyform:<!--Domainstart--><...
asked by 08.05.2018 / 03:06
2
answers

How can I format this array the way I want it?

I am creating a Seeder for Laravel insert values into a N para N table. I'm setting up array in one way, but I need it to become "in another" in the end. This is because I want to avoid constant code repetition (re...
asked by 26.04.2016 / 16:01
1
answer

Filter a field according to the format of the text

Can I filter the following formatting in a particular mysql field: (21) 2222-2222. I ask the understanding of the colleagues if I was not clear in my doubt, because I had a problem in the register of which the mask: $("#telefone").mask("(99)...
asked by 19.05.2016 / 17:25
2
answers

Include a digit before the phone in the DB [duplicate]

I have a system where 18 thousand users have been registered, but I realized that cell phones and landlines are missing a digit. Ex: (21) 9999-999 or (21) 2222-222. Although the field is CHAR (14). Can you directly include the number 9 (in the...
asked by 18.05.2016 / 20:58
1
answer

Field code in the value attribute of the option

I have a CategoriaCNH table with the following fields CodCategoriaCNH and Descricao . I have this code snippet html : <select name="categoriaCnh"> <option value="" disabled selected>CNH</option&g...
asked by 24.05.2016 / 03:53
3
answers

timestamp does not indicate the correct date

I'm working on a CMS for display of articles, my problem is with the function strtotime() does not indicate the correct date, always indicates March 1, 1970. A row (phpMyAdmin) of the article_timestamp is given with the format: e...
asked by 09.03.2014 / 11:31
3
answers

How to check if a file exists in several different folders?

I need a PHP script that checks if a file exists in a folder, if it does not exist it checks on the next and so on ... I do not mess around with PHP so I'm a little lost. I've tried to do with switch too but I could not. <?php...
asked by 12.03.2014 / 17:10
2
answers

Laravel installation error

Folks, I'm using Mac and trying to install Laravel. I already installed composer , I ran the command line documented in the framework: composer global require "laravel/installer=~1.1" It does everything ok, but when I try laravel ne...
asked by 13.11.2015 / 03:14