Php-mysql Course

Some PHP functions and code snippets useful for PHP Programmers and scripts.
New PHP Code Snippets might be added soon.

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
What attribute makes an option from <select> selected?
checked="checked" selected="selected" disabled="disabled"
<select name="a_name">
 <option value="val1">Option 1</option>
 <option value="val2" selected="selected">Option 2</option>
</select>
What CSS value allows to create color gradients for background?
contain repeat-x linear-gradient
#id {
  background: linear-gradient(top left, #1f1, #fff, #11f);
}
What statement creates an array in JavaScript?
[] {} new Object()
var arr = [1, "CoursesWeb.net", "MarPlo.net"];
alert(arr[2]);
Indicate the PHP function used to redirect to other page.
function() header() switch()
header("Location: http://coursesweb.net/");
exit;
PHP Code Snippets

Last accessed pages

  1. Redirects (3876)
  2. PHP Unzipper - Extract Zip, Rar Archives (20159)
  3. Read Excel file data in PHP - PhpExcelReader (90365)
  4. Get Lower, Higher, and Closest Number (4526)
  5. JavaScript Chronometer / Stopwatch (6980)

Popular pages this month

  1. PHP Unzipper - Extract Zip, Rar Archives (40)
  2. JavaScript Course - Free lessons (28)
  3. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (26)
  4. HTML Course - Free Lessons (23)
  5. Wake Up! (18)