Page 1 of 1

fast and simple serach for videos without using a database ?

Posted: Tue Jan 08, 2008 4:23 pm
by tokyowalker
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi everybody.. first i want to state that i m a newbie and I barely know php.. I have a small website using php to embed funny videos from youtube and i want to make a simple fast search for my website (I don t even know if what I want to do is possible using php but I will try to explain as much as I can and hope someone can help me out  ) 

I am using a videos list that looks like this : (videoslist.php)
--------------------------------
[syntax="html"]<table width="250" border="0" cellspacing="0" cellpadding="0">

<tr><td><a href="http://www.youtube.com/?v=video1">video 1</a></td></tr>
<tr><td><a href="http://www.youtube.com/?v=video2">video 2</a></td></tr>
<tr><td><a href="http://www.youtube.com/?v=video3">video 3</a></td></tr>
<tr><td><a href="http://www.youtube.com/?v=video4">video 4</a></td></tr>
<tr><td><a href="http://www.youtube.com/?v=video5">video 5</a></td></tr>
<tr><td><a href="http://www.youtube.com/?v=video51">video 51</a></td></tr>
<tr><td><a href="http://www.youtube.com/?v=video52">video 52</a></td></tr>
<tr><td><a href="http://www.youtube.com/?v=video6">video 6</a></td></tr>
<tr><td><a href="http://www.youtube.com/?v=video7">video 7</a></td></tr>
<tr><td><a href="http://www.youtube.com/?v=video8">video 8</a></td></tr>
<tr><td><a href="http://www.youtube.com/?v=video9">video 9</a></td></tr>
<tr><td><a href="http://www.youtube.com/?v=video10">video 10</a></td></tr>
</table>
---------------------------

what I wanna do is implement a serch code for this list .. for example if a user enters "video 5" in the search field the result will be the video names containing "video 5" with the link to those videos :

Code: Select all

<a href="http://www.youtube.com/?v=video5">video 5</a>
<a href="http://www.youtube.com/?v=video51">video 51</a>
<a href="http://www.youtube.com/?v=video52">video 52</a>

I hope it s doable and easy to do .. and will it be fast for a large list with 8000 videos?? can someone help please ...

thank you in advance[/syntax]


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Tue Jan 08, 2008 5:32 pm
by superdezign
You know, we use databases because they make our lives easier. Databases aren't very complex and even database design becomes easy when you know the concepts. Why don't you want to use a database? It'd make adding videos, displaying them, and searching through them that much simpler.