0

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>";
    }
chris85
  • 23,846
  • 7
  • 34
  • 51
iceybeta
  • 33
  • 1
  • 1
  • 3

1 Answers1

7

row['link'] is missing a dollar sign: $row['link']

chris85
  • 23,846
  • 7
  • 34
  • 51
bucketman
  • 463
  • 6
  • 15