Answer the question
In order to leave comments, you need to log in
How to be in this situation with js html and php?
There is a file with the technical name "add.php" inside the code starts with <? and ends with ?> .
Within these <? ?> "parenthesis" has the following lines
<TR class=row2><TD>Тема объявления:<FONT color=#ff0000>*</FONT><BR>(не более $maxzag символов)</TD>
<TD><INPUT id=txtCommand name=zag class=maxiinput maxlength=$maxzag value=\"$zag\" placeholder='например, продам медикаменты...'></TD></TR>
<TR class=row1><TD>Текст объявления:<FONT color=#ff0000>*</FONT><br><br><br>Выделить текст:</TD>
<TD><TEXTAREA id=txtCommand class=maxiinput name=msg style='HEIGHT: 200px; WIDTH: 370px' id=messageFF required rows=5 placeholder='Текст объявления…'>$msg</TEXTAREA></TD></TR>
<script>
var blackList = ['lorem', 'ipsum', 'dolor', 'sit', 'amet'];
document.querySelector('input').onkeyup = function() {
var expr = new RegExp(blackList.join('|'));
if (this.value.search(expr) !== -1) {
this.value = '';
}
}
</script>
Answer the question
In order to leave comments, you need to log in
Need to get resources_id, resources_name,All or according to some criteria?
select
`resources_id`,
`resources_name`
from `resources`
select
count(*)
from `statistics`
where `statistics_url` = '/resource/resources_id'
select r.resources_id, r.resources_name, count(s.statistics_url)
from resources r
left join statistics s on s.statistics_url = concat ('/resource/', r.resources_id)
group by r.resources_id, r.resources_name
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question