Having trouble excluding data that is null, I just want to pull the rows that have discord_id
data. Here is the code I have:
<?php
$con=mysqli_connect("localhost","site","password","table");
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$result = mysqli_query($con,"SELECT * FROM core_members");
while($row = mysqli_fetch_array($result))
{
echo $row['name'] . " " . $row['discord_id'];
echo "<br />";
}
mysqli_close($con);
?>