Questions tagged as 'php'

2
answers

display html files from a directory in a php

I have a directory with html files that are articles (no header or footer, I want to show all those html files in a php called articles.php with a link to access them (the article.php file has a header and footer by require () Finally, what I...
asked by 14.07.2016 / 17:53
2
answers

Access a variable session from jquery

From jquery, I send to validate a user via Ajax, validation that is in a PHP. If the validation is Ok, the PHP puts the user in a session variable: <?php $_SESSION['nombre']=$usuario; Then, I print said variable in the html: <div>...
asked by 22.11.2016 / 04:13
8
answers

Check empty input

I am programming in php and mysql and I have a form with personal data and a button submit to save. Then I want to validate that the input of the root of the person is not empty, and therefore do not leave save. I...
asked by 11.07.2016 / 18:26
3
answers

keep a different foliate in mysql php when two records are inserted at the same time

I have the following problem: Two or more users on different computers are filling out a form and that form assigns them a sheet. The folio is consulted according to the last one registered in the BD and returns the next folio to be used....
asked by 23.11.2016 / 18:43
1
answer

Someone could please tell me what is my mistake

hello knows I try to do a crud with laravel 5.6 and with table called t_areaFuncional but my model is AreaFuncional and my controller AreaFuncionaController, deactivate .. the convention that laravel has. with respect to migrations ... my tab...
asked by 31.08.2018 / 01:14
1
answer

how to do so that when I log in laravel I return the user's data and it is stored in a session or a localstorage

Hi, I am new to laravel, I use laravel 5.6 I am implementing a login with function __construct(){$this->middleware('auth.basic');} is a basic authentication, this builder inserted it in canda controller. what I need is that every time...
asked by 31.08.2018 / 23:47
1
answer

Data is not saved correctly in class object in PHP POO

I hope you can help me or give me a constructive criticism, or guide me I have a problem when assigning attributes to a class object, in the following images. I show a little. This is my Car class, with the set and get methods Now th...
asked by 04.09.2018 / 22:09
1
answer

Call to undefined function money_format ()

I'm doing my project in php version 7.1.8 in laravel framework but I get this error when I use Call to undefined function App \ Http \ Controllers \ money_format () can someone help me?     
asked by 16.09.2018 / 02:13
2
answers

Problem with mysql and php

I have the following doubt, I am doing a search engine, that I look for in my database a product that contains some letter in its name, I make the query in phpmyadmin and all good, it works for me, the problem comes when I pass by parameter from...
asked by 09.09.2018 / 07:47
1
answer

Wrap div generated by PHP with another div with CSS class

My question is about the following. Now I have this in a .php file: <div class="uno"> <?php if( function_exists('number') ) { number('tres'); ?> </div> The PHP code that is in the middle generates a <div class="tr...
asked by 17.09.2018 / 08:16