New PHP - MySQL tutorials might be added soon.


Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which attribute is used in <a> tag for the address of the link?
src href rel
<a href="http://coursesweb.net/" title="CoursesWeb.net">CoursesWeb.net</a>
Which CSS property sets the type of the text font?
font-family text-decoration font-size
h2 {
  font-family:"Calibri",sans-serif;
}
What instruction selects all the <div> tags with class="cls"?
querySelector("div.cls") getElementsByTagName("div") querySelectorAll("div.cls")
var elm_list = document.querySelectorAll("div.cls");
var nr_elms = elm_list.length;       // number of selected items
alert(nr_elms);
Indicate the function that can be used to get the sum of values in an array.
array_sum() array_diff() array_shift()
$arr =[1, 2, 3, 4);
$arr_sum = array_sum($arr);
echo $arr_sum;       // 10
PHP-MySQL Tutorials

Last accessed pages

  1. Select in MySQL, Output results in HTML Table (10823)
  2. ActionScript 3 - Change MovieClip Color (6732)
  3. Creating Mask Layers in Flash (3728)
  4. Replace JavaScript variable name from string with its value (1914)
  5. $_GET, $_POST and $_REQUEST Variables (28375)

Popular pages this month

  1. Making DIV Contents Scroll Horizontally, with multiple Div`s inside (2755)
  2. Contact page - CoursesWeb (2662)
  3. Tabs effect with CSS (2658)
  4. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (867)
  5. PHP getElementById and getElementsByTagName (748)