PHP Classes

File: Example

Recommend this page to a friend!
  Classes of vijay   Binary Tree Representation   Example   Download  
File: Example
Role: Example script
Content type: text/plain
Description: Example Script
Class: Binary Tree Representation
Display the nodes of a tree in a MySQL database
Author: By
Last change:
Date: 14 years ago
Size: 305 bytes


Class file image Download
include 'binaryTree.php';

$tree = new Tree();

$servername = '';
$username= 'root';
$password ='';
//Connecting to database
if($link= mysql_connect($servername, $username, $password))
mysql_select_db('binary') or die(mysql_error());

$tree->binarytree(1, $link);