Questions tagged as 'php'

3
answers

How to get the name of the site?

Imagine a scenario in which I have only URLs as follows, registered in my database: https://www.google.com https://www.facebook.com https://www.youtube.com https://www.twitter.com Thinking about this case, and there will only be URLs in...
asked by 22.08.2017 / 21:38
2
answers

How to get the name of compound domains?

I've seen How to get the site name? and testing I have seen that works very well on simple names, but on compound names, for example: https://www.stackoverflow.com https://www.oficinacarlos.com https://www.lucasverduras.com It returns eve...
asked by 23.08.2017 / 22:10
1
answer

Get json object inside another object of another object

I need to get the object online that is inside the "players" object but I can not get it ... I can only get objects that are "In the root" json where I need to get: { "status": true, "hostname": "skyminigames.com.br", "port": 25565...
asked by 03.05.2018 / 20:12
1
answer

Insert array from ajax into mysql database

I have this ajax that shows the items chosen in the " checkbox " of the form. $(document).ready(function(){ $('#submit').click(function(){ var languages = []; $('.get_value').each(function(){...
asked by 17.05.2018 / 22:11
1
answer

ternary condition or if and else with PHP

I would like to know, when I should use these types of conditions, I already did the test returns the same thing to me, but what's the difference? I believe it is not only diminish lines, but we will combine the second option is cleaner right?...
asked by 20.12.2017 / 15:37
1
answer

Task List

This is the following I am doing a list of tasks and at this moment I am with a doubt wanted to do a checkbox for when the task is completed the person to put checked my question is if it is necessary database for this purpose or not? so that wh...
asked by 26.12.2017 / 01:50
1
answer

Can you select multiple tables with the beginning of the name the same?

On the base base_suporte , there are the tables with the user token and the support token suporte_tokenUser_tokenSup . On the general support page, all media need to appear, this part is complete and working. But in the client par...
asked by 23.12.2017 / 04:32
1
answer

Calculation in php giving error

On my site I have the following code to calculate discounts: $valor_a_ser_calculado =$_POST['loc']; // valor original $quantos_porcento = 75/100; //isso equivale a 7% $loc = $quantos_porcento * $valor_a_ser_calculado . "\n"; Only you are g...
asked by 14.12.2017 / 23:25
2
answers

Problems with UTF-8 ISO-8859-1 mysql php accent [duplicate]

I'm having trouble with PHP / Mysql When I use: header("Content-Type: text/html; charset=UTF-8",true); <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> The HTML code is ok, but MySQL results with emphasis ....
asked by 13.12.2017 / 13:17
1
answer

send login information to the bank for comparison

I'm developing a system with login and password, using laravel. The registration part was even easy: public function salvar(){ $usu_email = Request()->input('usu_email'); $usu_senha = Request()->input('usu_senha'); $usu_tipo...
asked by 12.04.2018 / 21:49