Questions tagged as 'php'

2
answers

php delete data

Good I'm trying to delete data from php to mysql but I can not get it. It does not give any errors but it does not work. here I show the data and create a button to delete the data <?php while($variable = $consulta->fetch_assoc(...
asked by 17.02.2018 / 13:26
1
answer

NewsLetter on Prontus

Good morning everyone I have a situation with a website in Prontus , what happens is that there is a section to subscribe to the Newsletter, but the code apparently does not work, to make the verification that it sent information to the data...
asked by 30.01.2018 / 18:23
1
answer

Change type of SQL query

I have a table that shows the results of mysql through a query, but I would like to be able to change the type of query. I leave you a simple example. $sql = 'SELECT * FROM avisos ORDER BY fecha DESC'; I need to use a button (or something s...
asked by 24.01.2018 / 12:47
2
answers

Token CSRF Symfony

I am sending a request by ajax to a controller and this error is generated    ERROR: The CSRF token is not valid. Please try to send the form again. Form {{ form_start(form, {'action': path_with_locale('general_alerts'), 'attr':{'id': '...
asked by 23.01.2018 / 22:18
1
answer

Problems with database and array

I'm trying to do something as simple as a connection to a database and treat the data with an array, but there's no way I'm blocked. I'm getting an error I'm looking for, but there's no way. // control <?php include('../include/co...
asked by 24.01.2018 / 09:51
1
answer

MIME type of programs written in C (.c or c ++) language in PHP

I have the doubt of which is MIME in PHP of the programs written in C language either .co c ++ what happens is that in my application I need that they can only upload files with that extension, I want to make a filter something like this:...
asked by 24.01.2018 / 08:53
2
answers

How does Laravel work exactly in your MVC model?

My question is about how Laravel works, I know that your model is MVC and also that the one that makes the transactions is the Controller, I mean ... Vista < -------- > Driver
asked by 23.01.2018 / 18:21
1
answer

will customize FOSUserBundle in symfony 4

hello I hope you can help me, we have always used this bundle FOSUserBundle in symfony 2 now that we are passing everything to symfony 4 we can not customize the forms, I can get styles by adding <link rel="styl...
asked by 03.08.2018 / 22:03
1
answer

Laravel, show a user depending on the date (L-V)?

I want to do in laravel that shows a User depending on the day of the calendar. Suppose I have a DB with N users, and they must cover one day of guard in the L-V job in order of 1-N, ex: -Thursday 2 August: "It is up to you to guard the Us...
asked by 02.08.2018 / 19:26
2
answers

Run PHP with cron

I need to run a PHP script automatically, and for that I'm using the Cent'os Cron and the project is written with the Yii framework. The fact is that I am trying to add a crontab with: crontab -e And then I add the script path and the momen...
asked by 03.08.2018 / 12:44