Okay - I must be having a brain lapse. The code below is showing "Successful Connection" but the data is not being displayed. What am I overlooking?
BTW - I triple checked the DB name, table and fields - so they are correct.
<?php
// - - - - - - - - - - - - - - - - *
// include("config.php");
// - - - - - - - - - - - - - - - - *
$servername = "localhost";
$username = "****";
$password = "****";
$dbname = "****";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
} else {
echo "Connection Successful - ";
}
$sql="SELECT * FROM teams ORDER BY team";
$result=mysql_query($sql); // Puts result in a variable
$count=mysql_num_rows($result); // Counts number of rows (records)
while($rows=mysql_fetch_array($result)){
echo $rows['team'];
echo '<br />';
}
echo "<p>hell yes</p>";
?>
Hopefully this will be a simple overlook on my part.