Questions tagged as 'php'

1
answer

SQL Query Returned Null, Empty for JSON

I'm in trouble !! I have two tables 'user' and 'post' when I use phpmyadmin to do the following query it returns me the values as I expect. SELECT usuario.nome, usuario.foto_profile, post.titulo, post.descricao, post.local, post.latitude, pos...
asked by 29.11.2015 / 17:05
1
answer

Remove Blank Lines in a Csv File

I have the following csv file and would like to remove the lines that are blank For example .csv file "C","C","X","123","asdsd","'232","'323","","323","23","4","dsa","dsad","dsa","ds","dsad","sdad,","24","0","11","4,2","fdf","","k","502"...
asked by 27.11.2015 / 14:01
2
answers

How to pass business id to the employee table? [closed]

I have a company table and another employee. Company table : id_emp | tipo | documento | fantasia | email | celular | senha | data_cadastro | ativo Example: 1 | pessoa juridica | 05.142.333/0001-21 | petstop caes e gatos | petshop@gm...
asked by 22.11.2015 / 14:01
1
answer

Validating inputs php

I need to show all errors in completing the form first to then run FOR, but if I use DIE for each IF it will stop the script and it will not show if there are any more errors, what way to do this? if($parcelas == 0){ echo "Digite valor acima d...
asked by 26.11.2015 / 12:54
1
answer

How to create thumbnails of images from an existing image inside the folder?

I am learning to program, even learning VERY with the help of you who teach me practically everything about functions and my problem now is this: thumbnails of various width and height to match each area o...
asked by 22.11.2015 / 17:23
3
answers

How to force read all the results in REST on a page?

foreach ($result as $indices) { // Aqui ele retorna 50 registros por conuslta echo $indices['Empreendimento']; // Provavelmente preciso de um loop da paginação aqui dentro // para falar para o foreach que enquanto houver paginaç...
asked by 28.11.2015 / 15:10
1
answer

Do delete via php

I am programming a page in php and I have the following doubt I made an insert in my database and created a <table> a inside it are being displayed my data that would be the code: / p> <table id="tb1" class="display" cellspac...
asked by 10.08.2015 / 20:32
2
answers

PHP - Problem with return search INNER JOIN with GROUP BY!

So, I have 3 table: user: | ID | NOME | SOBRENOME | | 01 | Igor | Ferreira | | 02 | João | Henrique | | 03 | Rose | Beltão | following: | ID | user1_id | user2_id | | 01 | 01 | 02 | User 1 > Segue...
asked by 30.07.2015 / 20:20
1
answer

Transform JSON result to uppercase

I have the following JSON (complete): { "name": "Romano Pesca", "count": 8, "frequency": "Weekly", "version": 5, "newdata": false, "lastrunstatus": "success", "thisversionstatus": "success", "nextrun": "Sat Aug 08 2015 15:14:57...
asked by 01.08.2015 / 18:50
1
answer

usleep is not working on Windows

I'm using usleep to simulate slower internet in my projects, so to have a better perception of the screens when there is loads for ajax requests for example. Using a linux environment seems to work normal if I use: usleep(2500); B...
asked by 08.08.2015 / 01:35