Skip to main content

All Questions

1 vote
1 answer
430 views

Get last Left Child in binary tree in php

i am trying to get the last left child of sponsor id in a Binary tree. Like: this is present situation(in picture), when id7 whats to add a customer(whose id will be 14) in his left side then it will ...
Anmol singh's user avatar
1 vote
2 answers
246 views

Querying a self relationship category table

I am trying to optimize my php code for the following table Create table categories ( cat_id Int UNSIGNED NOT NULL AUTO_INCREMENT, parent_id Int UNSIGNED, cat_name Varchar(50) NOT NULL, ...
Jason's user avatar
  • 105