Questions tagged as 'php'

2
answers

Laravel database connection error

Use mamp and set up the database.php file so 'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', 'localhost:8889'), 'database' => env('DB_DATABASE', 'estoque_laravel'), 'username' =&...
asked by 13.11.2015 / 17:52
0
answers

Call another page with the action of a form

I have this code to open multiple forms on the same page: <select id="mudar_produto"> <option value="#produto_1">Novo Produto Higiene</option> <option value="#produto_2">Entrada de Produtos Higiene</option&...
asked by 21.05.2018 / 11:31
0
answers

Bind Param with Array - PHP and MySQLi

I have the code: <?php $clientes = implode(', ', $clientes); $busca = $mysqli->prepare("SELECT nome FROM clientes WHERE id IN (?)"); $busca->bind_param("s", $clientes); $busca->execute(); $busca->bind_result($nome);...
asked by 07.05.2018 / 14:05
1
answer

How do I switch between native version of php for a version installed by brew on maverick?

I've updated brew with php but when I use phpinfo() it's still in the php version of the system, such as toggling or to change?     
asked by 14.03.2014 / 06:31
2
answers

How to filter results and reload page / view in CodeIgniter?

I have code in CodeIgniter which takes a value of select dropbox in a view and leads to a second view showing the results in a table. In that second view , I kept the dropbox and the submit ("Filter") but...
asked by 17.03.2014 / 13:11
1
answer

Error uploading videos in CodeIgniter

I am not able to upload videos in CodeIgniter, the function works with pdf , but not with other extensions. The return I have is file type not allowed . Controller: public function add(){ $dados['tutorial']= $this->uploadArqui...
asked by 21.03.2014 / 14:07
0
answers

PHP (permission level on the server)

I created an application in php that uploads files (PDF, images and JSON) that works correctly on my PHP 5.2.17 server, but on the client server, the application only works if I change the permission of the site folder to 777. On my server I...
asked by 14.04.2018 / 05:33
1
answer

Return string search in table

Data and database queries have a very special place in the universe of computers. The popularization of the internet was due to the agility of searches implemented by the Enginner Search Web mechanisms. Simply searching for a string using sql...
asked by 05.04.2018 / 19:23
0
answers

Error using Facebook login again and again

I'm using the Facebook API to register data in the database. As soon as I open and navigate everything works fine, but when I try to register more than once this error appears: AfterIclosethebrowseritreturnstonormal,soIbelieveitisaproblemrea...
asked by 02.04.2018 / 15:02
0
answers

PHP from Wordpress!

Very good afternoon, I'm new here in stackoverflow and I have a question related to a wordpress theme, I have the following programming in php: if ($i == 0 || ($i % 3 == 0)){ echo '<div class="item '.esc_attr($active).'">&l...
asked by 08.02.2017 / 17:27