Demo entry 3832146

login.php

   

Submitted by Johnathon on Mar 02, 2016 at 01:25
Language: PHP. Code size: 437 Bytes.

<?php include '../../auth.php'; ?>
<?php include 'authload.php'; ?>
<?php include 'DBConnection.php'; ?>
<?php include 'connect.php'; ?>

<?php
	$results = $GLOBALS['CONNECTION']->select("*", " acct WHERE acct_type='" . $_POST['usrname'] . "'");
	$i = 0;
	while ($i < $results->num_rows) {
		$row = $results->fetch_array(MYSQLI_ASSOC);
		echo $row['acct_name'] . "<br>";
		$i++;
	}
	$results->free();
	$GLOBALS['CONNECTION']->close();
?>

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).