-1

I want that whenever I go to:

file.php?number=999

the value 999 will be a part of the code like this:

$lookup->setItemId("999");

I'm not sure how to write it correctly, this one doesn't work:

$lookup->setItemId("($_GET["number"])");

and not any other variation I've tried

rockyraw
  • 1,125
  • 2
  • 15
  • 36

1 Answers1

0

$lookup->setItemId($_GET["number"]);, Thanks @TwoStraws

rockyraw
  • 1,125
  • 2
  • 15
  • 36