PHP Objects (general)

<?php class Person{ // constructor public function __construct($first_name, $last_name) { $this->first_name = $first_name; $this->last_name = $last_name; } public function say_my_name() { echo "My name is " . $this->first_name . "…

Continue Reading PHP Objects (general)

Xampp problem – mysql keeps disconnecting

Try this: Install a new version of XAMP, and copy the all the content from the folder "xampp/mysql/backup" of the broken XAMP installation into "xampp/mysql/data" of the new installation. Now…

Continue Reading Xampp problem – mysql keeps disconnecting


  • Post author:
  • Post category:AJAX
  • Post comments:0 Comments

Allows the sending of data from a webpage to the server, after the page has loaded, and the receiving of data from the webserver, without having to reload the web…

Continue Reading AJAX


Finding HTML elements by Id <!DOCTYPE html> <html> <head> <style type="text/css">body { background-color: Green; }</style> </head> <body> <h1 id="myH1tag">This is the inner HTML if the H1 tag</h1> <p>This is a…

Continue Reading JS HTML Dom

Javascript HTML DOM Document

Finding HTML elements using javascript document.getElementByID : finds an element with an id attribute document.getElementsByClassName : finds an element by its class name (this is HTML5 specific) document.getElementsByTagName : finds…

Continue Reading Javascript HTML DOM Document

Simple javascript DOM event

<!DOCTYPE html> <html> <body> <h1 onclick="this.innerHTML = 'You clicked'">Click on this text</h1> </body> </html> In the following example, the onclick event calls a function 'changetheText'. <!DOCTYPE html> <html> <body> <h1…

Continue Reading Simple javascript DOM event