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
 

Contents

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

$tree = new Tree();

$servername = '127.0.0.1';
$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);

?>