Category Archives: Web Technologies

Learn PHP Basics – For Freshers and Experienced

Database Connection Connect mysqli with php using Object-Oriented Way. $host = “localhost”; $username = “root”; $password = “”; $conn = new mysqli($host, $username, $password); //connect to server if ($conn->connect_error) { die(“Connection failed: ” . $conn->connect_error); } echo “Connected successfully”; Connect mysqli with php using Procedural Way. $host = “localhost”; $username

JQuery Selectors

The jQuery function $() is used to find elements on the page to work with. Common Selectors Selector Usage Description element $(“p”).hide(); The jQuery element selector selects elements based on the element name. #id $(“#test”).hide(); The #id selector – Jquery id selector uses the id attribute of an HTML tag

« Older Entries