Jump to content

Recommended Posts

Hey all,

 

I'm trying to make a Address Book out of PHP, Ive got everything I need except search and I want to do it using a BST(to help me learn more on BST and MySQL interaction along with BST's in general)

 

How would I go about this? I've looked around loads but most of the tutorial's are general BST's not BST's with MySQL

In my table I've got the rows:

Fname

Lname

Email

Phone

House_No

Street

Post_Code

DOB

Image

 

Code available on request

 

Any help is grateful

Thanks

Link to comment
https://forums.phpfreaks.com/topic/281841-binary-search-tree-incorporating-mysql/
Share on other sites

It's on the display that im doing the search, since it will have lot's of addresses in Div tags I want to be able to make it so you can search for say "John" and anyone with the first name John shows up rather than all the data on the display

Right... What's your point?

 

I'm saying you shouldn't be caring about BSTs in MySQL. It's just a search. That's all you do. MySQL does the search however it feels is best and you get the results. Want to show just "John" stuff? Then only query for "John" stuff.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.