Questions tagged as 'php'

1
answer

Delete data without refreshing the page

I am no longer using extra pages to use functions within the PHP page. I use PDO with a php for the functions and use everything in the page without loading anything external. My question is how to use ajax in this case. Home I want to send a...
asked by 22.12.2014 / 19:50
1
answer

Create an array with dynamic variables

I needed to create dynamic variables and I used this script: for($i=1;$i<=40;$i++){ ${"horario" . $i} = get_custom_field('horario'.$i); } It generates the variables $ schedule1, $ schedule2, ... Now I need to group all these variab...
asked by 04.09.2014 / 18:11
1
answer

Connections and management

PHP - PDO, Connections and connection management    The connection remains active for the entire life of the PDO object. To close the connection, you must destroy the object, ensuring that all the references remaining to it are deleted - y...
asked by 30.08.2014 / 07:29
1
answer

Query Mysqli SUM does not return with result

I'm trying to sum a column using the SUM method of mysqli. The problem is that my query does not return with results. My code is this: $sql = 'SELECT SUM(size) as soma, porta FROM '' .$this->options['db_table'].'' WHERE 'porta'=?...
asked by 09.09.2014 / 05:28
2
answers

How to transfer full form array to another PHP file?

I have this form and I want to pass the array (as it is) $array_dos_pagamentos to recive.php but I can only pass single values. How can I pass the complete array? <form action='http://www.xxx.com/wp-content/xx/xx/recive...
asked by 14.01.2016 / 19:25
3
answers

After "apt-get dist-upgrade" command was installed PHP 7. How to get back to 5?

I use Ubuntu 14.04. And when I ran this apt-get dist-upgrade command here on my machine, it installed PHP 7. I've already removed PHP 7 like this: apt-get purge php.* But when I do this: apt-get install php It reinstalls PHP...
asked by 04.01.2016 / 16:08
2
answers

mysql errors being presented in French

All errors I receive regarding phpmyadmin database are in French. However, the panel is in pt-br, only query errors - a select for example - are displayed in French. I use WAMP. EX: Aucune base n'a �t� s�lectionn�e     
asked by 06.01.2016 / 20:05
2
answers

php server verification

I have a situation here where I need to identify the server where the site is located. Is it possible to check if a server is windows or linux through php code?     
asked by 06.01.2016 / 20:57
2
answers

TokenMismatchException after any ajax error in Laravel 5.1

I'm working with Laravel a short time and I'm having a problem when I use ajax requests. When my application returns any error and I try to send one more request, Laravel sends me this error: TokenMismatchException in VerifyCsrfToken.php line...
asked by 07.01.2016 / 11:57
1
answer

PHP error, "Call to undefined function"

Hello, I'm new to PHP and am having the following error:    Call to undefined function PerformLogin () What can it be? Code to call the function: if(isset($_POST["btn-logar"])) { include_once('../Controller/Login/Logar.php');...
asked by 19.12.2015 / 04:43