-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>'
3
  • php.net/manual/en/language.operators.string.php Commented Dec 30, 2017 at 17:02
  • You have an XSS vulnerability in this code too, don't use $_GET values without escaping/filtering them. Commented Dec 30, 2017 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. Commented Dec 30, 2017 at 17:44

1 Answer 1

1

Use a dot to concatenate strings

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.