D
D
dimasan572019-11-24 18:57:20
PHP
dimasan57, 2019-11-24 18:57:20

How to hide a block on the main page using JS?

There is a div block with the astroid-column class.
The question is how to hide this block only on the main page using js
Thanks in advance

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Burov, 2018-11-30
@BuriK666

if ($sql)
   {
 ....
   }

And you are sure that there are no errors in the SQL query, you do not check
if ($sql)
   {
...
    } else {
    echo mysql_error($sql);
    }

well, the mysql extension is deprecated, use mysqli

M
Maxim Timofeev, 2018-11-30
@webinar

Perhaps there is simply no extension, in php > 7 it is not:
php.net/manual/ru/function.mysql-query.php
Enable error reporting in php.ini so that you do not wander through the code blindfolded. This saves years of life in the end.

B
BATPYIIIKOB, 2019-11-25
@BATPYIIIKOB

Many people no longer see the difference between JS and JQuery....

document.getElementsByClassName('astroid-column').style.display = 'none';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question