JOIN TWGCOMPANIES

[insert_php]
$servername = “localhost”;
$username = “twgAdmin”;
$password = “admin@@@”;
$dbname = “twgcompaniesDev”;

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die(“Connection failed: ” . $conn->connect_error);
}

$sql = “SELECT * FROM Careers”;
$result = $conn->query($sql);

if ($result->num_rows > 0) {
echo “

“;
// output data of each row

while($row = $result->fetch_assoc()) {
echo “

“;
}
echo “

ID Position Field Location
” . $row[“ID”]. “ ” . $row[“Position”]. “ ” . $row[“Field”]. “ ” .$row[“Location”]. “

“;
} else {
echo “0 results”;
}

$conn->close();
[/insert_php]