This question already has an answer here:
Error:
Notice: Use of undefined constant row - assumed 'row'
Relevant Code [PHP]:
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
echo BuildDisplay($row['name'], $row['price'], row['link'], $sc);
if ($sc = 4) {
$sc = 1;
} else {
$sc = ($sc + 1);
}
}
} else {
echo "<p>No Products Available!<p>";
}
Aucun commentaire:
Enregistrer un commentaire