Home
Sair
Sistema AFH
Home
Cadastro de Notícias
Cadastro de Notícias
$link = mysqli_connect("localhost", "afhorgbr_site", "new25new85!", "afhorgbr_afhorg_sistema") or die("Error!!"); $cpf = $_POST['cpf']; //$cpf_ok = $_GET['cpf']; $nome = $_POST['nome']; //echo $nome; if ($cpf == "") { //$query = "SELECT * FROM usuario WHERE nome LIKE '%$nome%' LIMIT 5 "; $result_events = "SELECT * FROM doador WHERE nome LIKE '%$nome%' LIMIT 50 "; $resultado_events = mysqli_query($link, $result_events); $num_rows = mysqli_num_rows($resultado_events); while($row_events = mysqli_fetch_array($resultado_events)){ $data_ok = $row_events['cod']; //echo $row_events['cod']; $iduser = $row_events['id_doa']; echo "
".$row_events['id_doa']." - ".$row_events['nome']."
"; //echo $row_events['nome'].""; //mysqli_free_result($resultado_events); } } else { $query = "SELECT * FROM doador WHERE cpf LIKE '%$cpf%' LIMIT 5"; } if ($result = mysqli_query($link, $query)) { /* fetch associative array */ $row = mysqli_fetch_assoc($result); $status = $row['status']; //$result_cursos = ""; //echo "Nome do curso: ".$rows_cursos['nome']."
"; //echo $nome; ?>
CPF
} else { ?>
} ?>
NOTICIAS
Descrição
TIPO
DINHEIRO
PIX
TRANSFERENCIA
MENSAGEIRO
Data
Valor
Cód. Operadora
//echo "a is smaller than b"; } ?>
if ($status == "Aprovado") { ?> } else { } ?>