<?php
	$ServerName = "localhost";
	$ServerUserName = "root";
	$ServerPassword = "root";
	$dbName = "brentswelding";
	
	$conDataBase = new mysqli($ServerName, $ServerUserName, $ServerPassword, $dbName);
	if ($conDataBase->connect_error) {
		die("Connection Failed " . $conDataBase->connect_error);
	}
	
	$sql = "SELECT id, word FROM words";
	$result = $conDataBase->query($sql);
	
	if ($result->num_rows > 0) {
		while ($row = $result->fetch_assoc()) {
			echo($row['id'] . " " . $row['word'] . "\n\r");
		}
	}
	else {
		echo("Error");
	}
?>