-4

Notice: Undefined variable: upid in C:\wamp\www\probeer\opvragen.php on line 112

Call Stack
#   Time    Memory  Function    Location
1   0.0007  264840  {main}( )   ..\opvragen.php:0

line 112

echo '<a href="opvragen.php?upid='.$upid.'\" class="btn-default">Update</a></td></tr>';
chris85
  • 23,846
  • 7
  • 34
  • 51
  • 1
    Can you post the code with line 112 ? – Naz May 10 '16 at 12:36
  • 3
    Error seems pretty straight forward. `$upid` is not defined. – chris85 May 10 '16 at 12:37
  • Your variable `$upid` does not exist. Do something like `$upid = 'foo';` before line 112 and you'll at least get no error. – giorgio May 10 '16 at 12:38
  • It means that $upid isn't defined. Can you show us where you'd define it? – Strah Behry May 10 '16 at 12:38
  • 1
    why you guys make negative review on the question? As He is school guy and without helping him you are making down vote on question. – Harsh Sanghani May 10 '16 at 12:41
  • @HarshSanghani how have we not helped? We gave a link `719917` views, numerous answers, and is the exact issue to the question. A research effort is expected before posting. There is nothing to support that occurred here. I can't even begin to guess where the OP thinks `$upid` was defined. – chris85 May 10 '16 at 12:45

1 Answers1

1

To simply answer your question the variable $upid is not defined, just like your error says.

Your are trying to echo out the content of the variable $upid right here: ?upid='.$upid.'

So somewhere above line 112 in your file, $upid should be assigned a value, but it isn't. If you on line 111 do this:

$upid = "Test"; 

Then your script wont throw the error, but you have to actually assign the value you want for it, so its time to look at your code where you are supposed to define it.

SharpC
  • 6,974
  • 4
  • 45
  • 40
Ole Haugset
  • 3,709
  • 3
  • 23
  • 44