background preloader

EMM Config Website

Facebook Twitter

PHP 5 MySQLi Functions. No permission. Not found. Object Oriented Programming in PHP. Advertisements We can imagine our universe made of different objects like sun, earth, moon etc.

Object Oriented Programming in PHP

Similarly we can imagine our car made of different objects like wheel, steering, gear etc. Same way there is object oriented programming concepts which assume everything as an object and implement a software using different objects. Object Oriented Concepts: Before we go in detail, lets define important terms related to Object Oriented Programming. Class: This is a programmer-defined datatype, which includes local functions as well as local data. Defining PHP Classes: The general form for defining a new class in PHP is as follows: Here is the description of each line: Example: Here is an example which defines a class of Books type: The variable $this is a special variable and it refers to the same object ie. itself.

Creating Objects in PHP Once you defined your class, then you can create as many objects as you like of that class type. Calling Member Functions This will produce follwoing result: PHP and MySQL Tutorial. PHP and AJAX. What is AJAX ?

PHP and AJAX

AJAX stands for Asynchronous JavaScript and XML. AJAX is a new technique for creating better, faster, and more interactive web applications with the help of XML, HTML, CSS and Java Script.Conventional web application transmit information to and from the sever using synchronous requests. This means you fill out a form, hit submit, and get directed to a new page with new information from the server.With AJAX when submit is pressed, JavaScript will make a request to the server, interpret the results and update the current screen.

In the purest sense, the user would never know that anything was even transmitted to the server. For complete learning on AJAX, please refer to AJAX Tutorial. PHP and AJAX Example To clearly illustrate how easy it is to access information from a database using Ajax and PHP, we are going to build MySQL queries on the fly and display the results on "ajax.html". NOTE − We are assuming you have sufficient privilege to perform following MySQL operations. <? Gecko. PHP Error and Exception Handling. Advertisements Error handling is the process of catching errors raised by your program and then taking appropriate action.

PHP Error and Exception Handling

If you would handle errors properly then it may lead to many unforeseen consequences. Its very simple in PHP to handle an errors. Using die() function: While wirting your PHP program you should check all possible error condition before going ahead and take appropriate action when required. Try following example without having /tmp/test.xt file and with this file. This way you can write an efficient code. Defining Custom Error Handling Function: You can write your own function to handling any error.

This function must be able to handle a minimum of two parameters (error level and error message) but can accept up to five parameters (optionally: file, line-number, and the error context): Syntax Possible Error levels These error report levels are the different types of error the user-defined error handler can be used for. PHP Predefined Variables. Array.prototype.sort() Summary The sort() method sorts the elements of an array in place and returns the array.

Array.prototype.sort()

The sort is not necessarily stable. The default sort order is according to string Unicode code points. Syntax .sort([]) Parameters compareFunction Optional. Description If compareFunction is not supplied, elements are sorted by converting them to strings and comparing strings in Unicode code point order. Var fruit = ['apples', 'bananas', 'Cherries']; fruit.sort();var scores = [1, 2, 10, 21]; scores.sort();var things = ['word', 'Word', '1 Word', '2 Words']; things.sort(); If compareFunction is supplied, the array elements are sorted according to the return value of the compare function.

If compareFunction(a, b) is less than 0, sort a to a lower index than b, i.e. a comes first. So, the compare function has the following form: JavaScript Strings. SQL LEN() Function. SQL MID() Function. Wp-Pro-Quiz - Quiz Plugin für Wordpress - IT-Gecko. Wp-Pro-Quiz – Quiz Plugin für WordPress Ich habe schon lange nach einem guten Quiz Plugin für WordPress gesucht.

Wp-Pro-Quiz - Quiz Plugin für Wordpress - IT-Gecko

Aber alle Plugins, die ich gefunden und getestet habe, haben mir nicht gefallen. Also hab ich mich kurzerhand entschloßen ein eigenes Plugin zu schreiben. Herausgekommen ist Wp-Pro-Quiz. Wp-Pro-Quiz ist ein neues, leistungsstarkes und schönes Quiz Plugin für WordPress. Funktionen im Überblick Single ChoiceMultiple Choice“Sorting” Choice“Free” Choice“Matrix Sorting” ChoiceLückentextTimelimit (optional – einstellbar)Zufallsantworten (optional – einstellbar)Zufallsfragen (optional – einstellbar)HTML in Fragen und Antworten erlaubt (optional – einstellbar)Multimedia in FragenZurück-Button (optional – einstellbar)Fragen können (wenn erlaubt) zurückgegangen werdenKorrekt / Inkorrekt Nachricht nach jeder Frage (optional – einstellbar)Ergebnistext mit AbstufungenUnterschiedliche Punkte für jede FrageVorschau-FunktionStatistikImport / Export FunktionSehr schönes Standard-Designmächtig. Wp-Pro-Quiz. Quiz Master Next - My Local Webstop. The easiest and most flexible way to add multiple quizzes, tests, and surveys to your website.

Quiz Master Next - My Local Webstop

The Quiz Master Next plugin allows for unlimited quizzes each with unlimited amount of questions. The plugin allows you to create the quiz, add it to any page using a customized shortcode, allows the user to take the quiz, and then saves the results. You can set up what the user sees after he or she takes the quiz based on the user’s score. You can also have the plugin create a certificate for the user as well! Have Unlimted Quizzes, Tests, Surveys, Contact Forms, etc.. Each of your quizzes can have unlimited questions! Customize Your Text All the text your users see can be customized. Mulitple Landing Pages For Each Quiz. Quiz Master Next. Quiz Master Next.