Posts by Otávio Barreto • 99 points
2 posts
-
-1
votes2
answers43
viewsA: Possibility to search in one or more columns of the same SQL table
Try Something like: if (!empty($_GET) && (!empty($_GET['search']))) { $where = "WHERE"; $projetos = $conn->query("SELECT * FROM projetos {$where} LIMIT {$inicio},{$itens_por_pagina}");…
-
0
votes2
answers4834
viewsA: How to check in the database if the registration has already been made PDO
<?php if(session_id() == '') { // checka se tem sessão, se a não tiver sessão , inicia a session session_start(); } $checkuser = $_POST['ID']; $dados = $conexao_pdo->prepare('SELECT username…