Posts by Christian de Ornellas • 16 points
5 posts
-
0
votes2
answers76
viewsA: PHP How to make a specific loop for each table?
From what I understand you don’t want me to repeat the rows of the table when it is the same. Use the command below. SELECT DISTINCT descricao FROM tabelaProdutos
phpanswered Christian de Ornellas 16 -
0
votes5
answers3030
viewsA: Codeigniter -> Message: Trying to get Property of non-object
You are returning via array so in this case you need to use the loop in array for example using while instead of foreach, or else return string to loop with foreach. ex: Return $query->result();…
-
0
votes2
answers58
viewsA: PHP Search error
At the beginning of your code add it like this: $output = ''; The error that had appeared was notifying that its variable did not exist because it was only set in the if(){} so that’s why I asked…
-
-2
votes2
answers58
viewsA: PHP Search error
At the beginning of your code add it like this: $output = '';
-
0
votes3
answers149
viewsA: Find a certain number inside a mysql string
Good morning, from what I understand you need to display only the first line of your search, so change your sql code to: $sql = 'SELECT `ativos` from `produtos` WHERE `ativos` LIKE "%'.$id.'%" LIMIT…