1

Warning: Use of undefined constant id - assumed 'id' (this will throw an Error in a future version of PHP) in /home/conteud2/public_html/include/meta.php on line 114

variate code using {var2[id]} no solution

Code in on comment below

You can check the issue on page https://www.conteudoanimal.vet.br/racaseespecies/anfibios/ver.php?id=5

Server runs PHP7 at moment

Thanks in advance for any help !

ConteudoAnimal
  • 29
  • 1
  • 1
  • 3

1 Answers1

2

So it basically means that id isn't a constant. It either should be $id, or 'id', also the var2 should be $var2.

Try the following code:

"{$var2['id']}"

Or

"{$var2[$id]}"
MyLibary
  • 1,763
  • 10
  • 17