Questions tagged as 'php'

2
answers

Form only submits with Enter key

Inside the backoffice of a store based on Prestashop V.1.6.1.3. When I try to register a product, a very strange problem occurs that does not show error in anything even using the debug mode connected: define('_PS_DEBUG_DEV_', true); define...
asked by 11.11.2016 / 20:00
2
answers

Does MySql's Select command differentiate numbers that have zero left?

I have a table in MySql that has a field called Codigo , of type varchar(20) , this field in this case accepts codes that have zero on the left and codes that do not have zero on the left. Example: Códigos 0...
asked by 04.11.2016 / 19:23
3
answers

Detect window change of resolution

I need when the user resizes the window, I can detect to be able to send the page to give a refresh.     
asked by 29.10.2014 / 19:09
2
answers

Number of "bound variables" does not match the number of "tokens"

I made some changes to the script and it is generating two errors: Warning: PDOStatement :: execute () [pdostatement.execute]: SQLSTATE [HY093]: Invalid parameter number: number of bound variables does not match number of tokens in /localhos...
asked by 29.05.2014 / 04:58
4
answers

How to get the next element in a foreach in PHP

How do I get the next element in an array using foreach? For example, I'm iterating in an array and I need to know if the next element in this array is the same as what I'm about to do some operation against it.     
asked by 16.10.2014 / 01:59
6
answers

BBCode Parser ignore what's inside [code]

I made a bbcode parser based on some to meet my needs, however I have some problems. The code inside [code] should be ignored, but I do not know how I could do this, since it has all the other tags that are parsed. I tried to do this, did...
asked by 11.08.2014 / 17:42
3
answers

Login does not redirect, header ('Location')

I just made a site that allows CMS so our client can login and modify the content to their liking. In the localhost and on a test server that we have works fine but at the destination final server I can not get out of the login page after fillin...
asked by 31.03.2014 / 13:04
2
answers

Converting two MySQL selects to one

I have a small question about MySQL. I have the following MySQL query: sq1 = mysqli($conexao,"select * from tabela1"); $tr1 = mysqli_num_rows($sq1); Then I make the famous loop: for ($i=0;$i<$tr1;$i++) { $registro1 = mysqli_fetch_a...
asked by 31.07.2016 / 16:56
1
answer

Using $ this when it is not in object context

I'm trying to create a class in PHP that connects to the MySQL database and I'm getting the following error:    Fatal error: Using $ this when not in object context ConnectDB.class.php class ConnectDB { public $pdo; private $dri...
asked by 24.09.2018 / 22:25
2
answers

Make line break after semicolon;

I have a text file (word) composed of four pages with several e-mail addresses separated from each other by semicolons. It's like this:    [email protected]; [email protected]; [email protected];     [email protected]; example5@email....
asked by 13.07.2015 / 17:53