This question already has an answer here:
this is my first programming question on the internet.
I already made some research, tried to change something, but so far, nothing solved my problem.
I have the code below:
$sql = "SELECT * FROM tb_carros_of";
$result = mysqli_query($con, $sql) or die("Error: ".mysqli_error($con));
while($row = mysqli_fetch_array($result))
{
echo strtoupper($row['no_escud']);
}
The problem is: the exact code works fine on an external website, but locally, on my computer, it returns the error "Notice: Undefined variable: row" on the line starting with "echo ...";
What am I missing?
</div>