Posts by Mateus José Pretti • 23 points
5 posts
-
1
votes1
answer375
viewsQ: Subquery Returns more than 1 Row Mysql
Follow the code below that is causing the error quoted in the title: select (select id from message where user_from = tempMsg.user OR user_to = tempMsg.user) as id from tempMsg How can I fix it?…
-
-2
votes1
answer724
viewsA: Remove square brackets from an array
I was able to solve my problem by adding the label in the array to make the autocomplete recognize. $dados[] = array('label' => utf8_encode($linha['serie_nome']));…
-
-2
votes1
answer724
viewsQ: Remove square brackets from an array
You would need to remove the brackets from a print of the results of an array within a While. Follow code: <?php $termo = $_GET['termo']; include "conn.php"; //Consulta busca informações para…
-
0
votes1
answer138
viewsQ: Image Generator Does Not Work
<pre> <code> <?php $tamanhofonte = 100; // Fonte de código de barras que eu tenho em um sistema $fonte = 'c39hrp48dhtt.ttf'; // Texto que será impresso na imagem // Para que funcione…
-
1
votes2
answers1361
viewsQ: Display only one record with foreach
I need help to display only one database record, follow code: <?php $posts = DBRead( 'posts', "WHERE categoria = 3 AND status = 1 ORDER BY data_numero ASC" ); if( !$posts ) echo…