//например, если сейчас так
SELECT title , content FROM answers WHERE id = 5
сделать так:
SELECT answers.title , answers.content , table.like/disklike , FROM answers , table WHERE answers.id= 5 and table.answer_id = answers.answer_id
<SCRIPT>
function SelectText(begin, end) {
ta = document.getElementById("textareaID1");
if (ta.createTextRange) {
tr = ta.createTextRange();
//tr.findText("something");
tr.move("character", begin);
tr.moveEnd("character", end-begin);
tr.select();
} else if (ta.setSelectionRange) {
ta.setSelectionRange(begin, end);
}
}
</SCRIPT>
<TEXTAREA id="textareaID1" cols="50" rows = "5">test test2 something test test2</TEXTAREA>
<input type="button" onClick="SelectText(11,20)" Value="SELECT">