Relative Content

Tag Archive for javascriptphp

Words to numbers

I am trying to take the numbers on a PHP data page and convert them to their word form through JavasScript onclick. When I console.log the result of each if statement- its doing what I am asking it to do in the background.. But I cant get it to return as a unit or display on the page. Any suggestions?

Commenting out code with PHP & JS causing bug

This code seems to comment out the alert line out, any idea why?
If I remove “//test” then it seems to work though.
Not sure if it’s a PHP or JS Bug or it’s meant to uncomment the line below also?

employee attendance magement is not working

https://www.sourcecodester.com/php/14433/employee-attendance-record-system-using-php.html this is the code i copy and there is a error
Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘`’ at line 1 in C:xampphtdocsEARSadminemployee.php:44 Stack trace: #0 C:xampphtdocsEARSadminemployee.php(44): mysqli->query(‘SELECT * FROM e…’) #1 {main} thrown in C:xampphtdocsEARSadminemployee.php on line 44

Update player on PHP and JS

Ребята привет!) Я пишу код по заданию для сайта радиостанции, и у меня возникла проблема с плеером на странице. Проблема в том что я без понятия, как сделать так, чтобы обновлялись блоки “Сейчас” и “Далее”, в них выполняются запросы в базу данных. Нужно сделать так, чтобы они обновлялись по окончанию трека. Предоставляю код: