Buscar

consulta_usuario_nome

Esta é uma pré-visualização de arquivo. Entre para ver o arquivo original

<?php


	include("conexao.php");
	include("funcoes.php");

	$referencia = $_GET["usuario"];
	if ($referencia == ""){
			$strMsg = "";
		}else{
			$sql = "select * from usuario where nome like '%$referencia%' "; 
			
			$result = $conn->query($sql);
			
			
			if ($result->num_rows > 0) {
						 	$tabela='<div class= col-sm-10 col-lg-10><table class="table table-hover table-bordered" ><thead class="thead-inverted"><tr><th class="text-center">Login</th><th class="text-center">Nome</th><th class="text-center">Email</th><th class="text-center">CPF</th><th class="text-center">Fun&ccedil&atildeo</th><th colspan="1" class="text-center">Imagem do Usuário</th><th colspan="2" class="text-center">Opções</th></tr></thead>';
						 	
						 	while ( $row = $result->fetch_array(MYSQLI_ASSOC) ){
							 
							 $tabela .= "<tr><td class='text-center'><h4> ".$row['login']." </h4></td>";
							 $tabela .= "<td class='text-center'><h4> ".$row['nome']." </h4></td>";
							 $tabela .= "<td class='text-center'><h4> ". $row['email']." </h4></td>";
							 $tabela .= "<td class='text-center'><h4> ". $row['cpf']." </h4></td>";
							 $tabela .= "<td class='text-center'><h4> ". tipodeusu($row['tipousuario'])." </h4></td>";
							 $tabela .= "<td class='text-center'><h4> <img src='uploads/". $row['img1u']."' height='60' width='60'> </td>";
							 $tabela .= "<td class='text-center'><a href='editarusu.php?id=".$row['id']."'>Editar</a></td>";
							 $tabela .= "<td class='text-center'><a href='excluirusu.php?id=".$row['id']."'>Excluir</a></td></tr>";
							 		 }
						 		 $tabela.= "</table></div>";
						 	echo $tabela;

} 
}
?>

Teste o Premium para desbloquear

Aproveite todos os benefícios por 3 dias sem pagar! 😉
Já tem cadastro?

Outros materiais