$stmt=$con->prepare("SELECT url,cover_page,alt_img,mini_title,mini_description,date_post FROM news_sport WHERE language=? AND active=? order by id_news_sport DESC limit 2");
PHP Notice: Undefined variable: con in /home/JkXP7p/prog.php on line 6
PHP Fatal error: Uncaught Error: Call to a member function prepare() on null in /home/JkXP7p/prog.php:6
Stack trace:
#0 {main}
thrown in /home/JkXP7p/prog.php on line 6