-5

What is wrong with my code as I'm getting this error:

PHP Notice: Use of undefined constant blocked - assumed 'blocked' in /home/public_html/message.php on line 11

enter image description here

Frits
  • 7,341
  • 10
  • 42
  • 60

2 Answers2

0

Your code is like,

$curblocked = $result[blocked];

But it should be like,

$curblocked = $result['blocked'];
Virb
  • 1,639
  • 1
  • 16
  • 25
  • You should avoid answering duplicate question – Jigar Shah Jul 21 '17 at 09:11
  • Sorry but I didn't see your comment, I just saw image and answered here. And if so you should write your answer here, not in comment. – Virb Jul 21 '17 at 09:12
  • I'm not saying, I wanted to answer. This is duplicate question so it will be closed and answering such question you can be down voted – Jigar Shah Jul 21 '17 at 09:15
0

just replace $result[blocked] with $result['blocked']

Nicky Manali
  • 386
  • 3
  • 22