Hello, PHP gurus!
I’m a new member at this forum, and it looks like a great community for problem solving codes.
Function: I am trying to use jQuery’s “toggle” function to make an answer field appear underneath a comment when you click the “Answer to the comment”-button. I have also tried to make all the fields unique by getting the “profile id” and “answer id” from a while-row, and adding it to the class of the answer section.
My problem: When I press the “Answer to the comment”-button, it still toggle’s all the other answer-sections, even though just ONE class is suppose to appear. And I have made sure that the class of the section is unique, and they all have the “display:none;”-style applied to them. I just think that it’s weird that the other classes that has other ID’s also appear when I click the button. It should only be able to show the exact section that is unique from the other classes I believe? I hope you guys understand what I am trying to type - and sorry for some bad grammars. Norwegian guy typing ???
Some of my code:
[code]
Svar på kommentaren
<?php
}
?>
<?php
$birthDate = $answers_poster_row[‘birth’];
$tz = new DateTimeZone(‘Europe/Brussels’);
$shout_age = DateTime::createFromFormat(‘d/m/Y’, $birthDate, $tz)
->diff(new DateTime(‘now’, $tz))
->y;
echo ’
‘;
?>
<?php
if ($_GET[‘section’]==‘question’)
{
echo ‘
}
else
{
echo ‘
}
echo ’
Tid siden hendelse
echo ‘’;
echo ‘’;
echo ‘’.$answers_poster_row[‘username’].’ svarte:
’;
echo $answers_row[‘answer’];
?>
<?php
echo ’
Anyways; thanks in advance! And I hope that any of you people can help me with my PHP issue.