Login   Register  
PHP Classes
elePHPant
Icontem

File: Example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2010-02-21 06:06
Size: 305 bytes
 

Contents

Class file image Download
<?php
include 'binaryTree.php';

$tree  = new  Tree();

$servername '127.0.0.1';
$username'root';
$password ='';
//Connecting to database
if($linkmysql_connect($servername$username$password))
{
    
mysql_select_db('binary') or die(mysql_error());
}

$tree->binarytree(1$link);

?>