Become Our Fan on Social Sites!

Facebook Twitter

Google+ RSS YouTube
Showing posts with label php. Show all posts
Showing posts with label php. Show all posts

Saturday 10 May 2014

Populate Select Box / Drop Down Dynamically From Database

How to fill select box dynamically from database table. Here is a tutorial of how to fill up HTML drop down menu dynamically from MySQL database table.
Fill or Populate Drop Down or Select Box Dynamically Using Database
Fill Select Box / Drop Down Dynamically

Wednesday 2 April 2014

Hack - New Programming Language By Facebook

Facebook just released new programming language named 'Hack'. Hack is a programming language for HHVM (Hip Hop Virtual Machine) that interoperates seamlessly with PHP (Hypertext Preprocessor).
 
Hack New Programming Language
Hack - Programming Language By Facebook


Friday 28 March 2014

Basics of PDO - PHP Data Objects

1. What is PDO?

PDO stands for PHP Data Objects. It is an interface for accessing database in PHP (Hypertext Preprocessor). PDO is a class and built-in available to PHP5. PDO supports multiple database access.

PDO - PHP Data Objects - Introduction

Tuesday 25 March 2014

PHP Database Connection With MySQL

Hello friends, this article is for php beginners who want to know how to connect to MySQL database using PHP code.

Here is your answer, I am explaining you step by step tutorial of how to make connection to MySQL database in PHP (Hypertext Preprocessor) language.

PHP Database Connectivity With MySQL
MySQL - PHP Database Connectivity

Thursday 19 December 2013

PHP foreach loop tutorial

The foreach construct provides an easy way to iterate over arrays and it used to loop through each key/value pair in an array.

Wednesday 18 December 2013

Use of define() function in PHP

Use of define() function is to set a constant. It has three parameters: first is name of the constant, second is value for the constant and third parameter for constant name should be case-insensitive.

Monday 16 December 2013

String functions in php

There are many string functions, below PHP script illustrates six php string functions: 1) strlen 2) strpos 3) chr 4) explode 5) implode 6) str_replace

Friday 13 December 2013

Constructor in PHP - OOP

Below PHP script illustrates constructor in PHP. To create constructor in PHP __construct keyword is used. In our example, we pass one string parameter(in our case "Jignesh") while creating object.

Thursday 12 December 2013

Hello World Program Using OOP in PHP

Following Script illustrates simple Object Oriented Programming in PHP. Script contains one class named "HelloWorld". Class contains variable named "world" and method/function named "getHtml()" to return message "Hello, World!". To call "getHtml()" method first we have to create object (in our example $greetings) of HelloWorld class. And using that object we are calling getHtml() method ($greetings->getHtml()).