Questions tagged as 'php'

1
answer

Laravel show articles ordered

How can I get a quantity of items ordered from the newest to the oldest (currently it appears from the oldest to the newest) in laravel 5.4 in the controller, the function of the home page home is like this: public function home(){ $...
asked by 29.08.2017 / 04:39
1
answer

Select dependent PHP and MySQL

Greetings, I am creating a web application to register job vacancies using PHP, MySQL and a bit of Javascript. My problem is that I want to filter by educational level so that all records do not appear. I thought to use a switch inside PHP but i...
asked by 04.09.2017 / 18:21
1
answer

Send variable between two php files

Good morning I have a page where I show a sql table. And I want if the user clicks on a title it shows only the information of a row. I am trying to do so, news.php: <form action="new.php" method="post">...
asked by 31.08.2017 / 11:46
2
answers

Error Array to string conversion

I am trying to send two arrays to my BD, an array of activities and another array of points !! so the form, and the error that throws me is an array to string conversion I do not understand why, could you help me? error 1/2 is:...
asked by 05.09.2017 / 02:11
1
answer

Check only the current month

I have an invoice which will be filled in monthly, the records with the date do it correctly at Hora de Caracas/Venezuela , but in the following script it shows the values of example 05/agosto/17 al 05/septiembre/2017 , which would c...
asked by 05.09.2017 / 04:46
1
answer

SMTP connect () failed

Thanks for your kind help:) At the moment I am trying to send an email using PHPMailer to which I get the following error: SERVER -> CLIENT: 220 smtp.gmail.com ESMTP t129sm8288876vkc.0 - gsmtp CLIENT -> SERVER: EHLO localhost SERVER -...
asked by 05.10.2017 / 02:46
1
answer

Datatables jquery showing me hidden fields

I have a table on a page where I use the datatables.jquery plugin, which for me is very practical and functional. It turns out that in the table I use two hidden fields, the id and the nrologins (the latter I use to sort the data that comes wit...
asked by 05.10.2017 / 12:51
1
answer

Perform cycle while from a MySQLi query in PHP

today I have fallen into the following problem, I am making a student management system in which the data is stored in a MySQL database, but when I want to list them all, I can not do it, I am using the function mysqli_fetch_array (), I've alrea...
asked by 04.10.2017 / 23:48
2
answers

Warning: session_start (): Setting option 'auto_start' failed

I get the following error on line 10: Warning: session_start (): Setting option 'auto_start' failed session_start([ 'use_only_cookies' => 1, 'auto_start' => 1, 'read_and_close' => true ]); That corresponds to 'auto_s...
asked by 20.08.2017 / 18:19
1
answer

Define a global variable to be used in several views independent of the controller of each view

I need to declare a globlal variable, something similar to: $user = Auth::user(); I am consuming an API and I need to get the $user variable in the login form in a global way to use it in the whole app. I am not very familiar with th...
asked by 02.08.2017 / 22:49