Junior Spellweaver
- Joined
- Apr 5, 2012
- Messages
- 113
- Reaction score
- 8
Dear Otaku
I wanted to ask you the following thing...
A div box looks like this:
above that div box there is this input:
The value of the input adds +5 to itself by clicking on "Show more comments" in the div box.
The problem is i don't know how to put that changeable value of the hidden input in the mysql query:
I thought it would be simply $streamcntw (there where i wrote "???") but this leads into a sql error. I think the solution would be a form where i can cleantag($_POST['getmorecomments']) it but i don't know how to do this too without reloading the whole page.
I appreciate any help.
Greetings moere
I wanted to ask you the following thing...
A div box looks like this:
Code:
Comments
------------------
Article 1
Article 2
Article 3
Article 4
Article 5
------------------
Show more comments
above that div box there is this input:
Code:
<input id="streamcntw" name="streamcntw" type="hidden" value="5">
The value of the input adds +5 to itself by clicking on "Show more comments" in the div box.
The problem is i don't know how to put that changeable value of the hidden input in the mysql query:
PHP:
$comments = mysql_query("SELECT * FROM commentsnewsevents WHERE article = '$id' ORDER BY tstamp DESC LIMIT ???") or die(mysql_error());
I thought it would be simply $streamcntw (there where i wrote "???") but this leads into a sql error. I think the solution would be a form where i can cleantag($_POST['getmorecomments']) it but i don't know how to do this too without reloading the whole page.
I appreciate any help.
Greetings moere