All Questions

6
answers

How to convert UTF-8 characters in PHP

In my web application, I'm using a MySQL database that has the EditableContent table. This table has the content field, which is of type text and has the input format utf8-bin . In the database the characters appear...
asked on 19.08.2014 / 02:19
5
answers

What is the definition of each combination of css Selectors

The .css files that are used follow a pattern: seletor{ atributo: valor } The part of the attributes and values I understand, however in some examples I see these selectors are being separated with ',' or with a '.' on the front or a '#'. A...
asked on 29.09.2016 / 16:45
6
answers

How to do a Split for when there is a letter in the string?

I'd like to make a string be split with .Split() every time there is a letter. Example: The string : 97A96D112A109X115T114H122D118Y128 A array would come with 9 values: { 97 96 112 109 115 114 122 118 128 } How...
asked on 01.06.2017 / 00:46
4
answers

How to check if the first four characters of a string match 'www.'?

What is the best way to verify this? More simply and with better performance. I could only imagine doing so: var string = "www.google.com"; if(string[0] == "w" && string[1] == "w" && string[2] == "w" && string[3] ==...
asked on 09.01.2015 / 14:47
3
answers

Prevent an action from being intercepted by the Interceptor Handle

I implemented a class to intercept some urls and check if I have a logged-in user, if there is access to the url, otherwise I am automatically "played" to the login screen. It happens that in the page of a login I have a link to register a us...
asked on 23.11.2014 / 03:48
6
answers

How to write variables in PHP?

I was watching the videos of Robson V.Leite and I realized that at some point it retrieves information from the forms to insert into the database in a way different from the one I use, the only way I knew so far. It stores the variables in the f...
asked on 17.11.2015 / 14:21
4
answers

HTML / PHP Detect if form value changed

I have a form where I can change things like username , password , morada , etc. On the site I also use a session (login) for each user, which is defined by username . The problem is that by changing the form value of...
asked on 27.04.2015 / 11:35
4
answers

How do I open a pop-up without using JavaScript?

How to open a pop-up without using onclick or any other JavaScript function?     
asked on 04.04.2015 / 23:49
11
answers

Center image vertically within a div

I need to center images within a div . I can do this horizontally with text-align:center; , however I want to centralize vertically . I tried vertical-align: middle; and display: table-cell; and it did not work. Is...
asked on 11.02.2014 / 14:48
2
answers

How to insert EMOJI - SMARTFONES in MySQL database with PHP? [duplicate]

Well, as the question is very self explanatory, I will only reinforce the question. I have an APP system of conversation, which through HTML , I command for PHP with Ajax , but if the user tries to insert some emoji in> (emotion)...
asked on 03.08.2015 / 18:16