Posts by Rafael Nery • 196 points
8 posts
- 
		2 votes1 answer309 viewsA: Concatenate lines with the same codeOnly if the database is Postgresql Mysql you can use group_concat select ivr_interacao.CHAMADO, ivr_interacao.ID, ivr_interacao.VISITA, ivr_interacao.NOME, ivr_interacao.TELEFONE,… 
- 
		1 votes1 answer23 viewsA: Validation does not redirect PHP / JqueryIdeally you would return a flag in your method and treat the logic of redirecting on the frontend. Returning instead of your window.location.href, return true or false. In the post callback, next to… 
- 
		1 votes2 answers530 viewsA: Atom not saved in correct encodingIt’s really a limitation, but it will help, http://editorconfig.org/ https://github.com/sindresorhus/atom-editorconfig#readme Just put a. editorconfig file in the root of your project, or in the… 
- 
		1 votes1 answer62 viewsA: SELECT following from INSERTYou can do an Insert with select. <?php mysql_query("insert into embarcacao(EMB_NOME, EMB_CAPACIDADE, EMB_LATITUDE) select '$nome', '$capacidade', CID_LATITUDE from cidade;");… 
- 
		3 votes1 answer24 viewsA: Error in newer versionsYour code is using short_open_tags https://secure.php.net/manual/en/language.basic-syntax.phptags.php This can be modified in php.ini or .user.ini of your project. Or to normalize things start with… 
- 
		0 votes3 answers376 viewsA: multiply div s repeat loop co div sA good alternative is to use flexbox. https://css-tricks.com/snippets/css/a-guide-to-flexbox/ https://tableless.com.br/flexbox-organizando-seu-layout/… 
- 
		0 votes1 answer63 viewsA: Conflict with JSON generationIn addition to the items cited By Anderson, the coding of your database seems to be in Latin1 and json is utf8 
- 
		4 votes3 answers993 viewsA: List files in a folder containing a specific word in the nameThe ideal would be to test with preg_match if the file contains what you need. Scroll through the files and with the string name of each one, do something like. <?php $encontrou =…