-2

I am having issues with php, I wish to concatenate this.

'<a href="?param='$_GET["param"]-1'" title="">Prev</a> <a href="?param='$_GET["param"]+1'" title="">Next</a>'
halfer
  • 19,471
  • 17
  • 87
  • 173
  • http://php.net/manual/en/language.operators.string.php – Devon Dec 30 '17 at 17:02
  • You have an XSS vulnerability in this code too, don't use `$_GET` values without escaping/filtering them. – halfer Dec 30 '17 at 17:14
  • I would say that if you are a complete PHP beginner, work your way through a good tutorial first, before trying to strike out on your own. – halfer Dec 30 '17 at 17:44

1 Answers1

1

Use a dot to concatenate strings

http://php.net/manual/en/language.operators.string.php

Ctznkane525
  • 7,105
  • 2
  • 15
  • 36