can we use JQ insted of php for developing website. which one is more preferable. I think we can also use JQ for web development.Using JQ we can Execute MySql query li开发者_运维百科ke php. Which One is better? and why?
PHP is for the backend, and JavaScript (jQuery) is for the frontend. You need a PHP backend to make SQL queries, and you can use jQuery for client-side (web browser) things.
Actually speaking PHP and Jquery both are enterly different PHP is server side language and Jquery is client-side language
we can use PHP for executing datas and manipulation on our server but if you Jquery alone you can perform manipulation is client side only. For example you can use PHP for database actions and Jquery for web page validation.
精彩评论