Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Search Function - possibly a really stupid question

Featured Replies

Hi all,

apologies for this, as it is possibly a really daft question.

however... I've just made a website, well, bought a template anyway.

It has search function which i wish to get working

I was just reading this on my break in work - http://www.110mb.com/forum/search-function-in-php-t19128.0.html

 

is it essential to have an actual database set up to have a search function?

can you not just search the website content rather than a database?

 

thanks alot

First and foremost, you need to have server-side script to search your website, in your case PHP I would imagine.

 

In theory, you can avoid the use of a database, but... if your content is in a database then you have no choice.

 

If your content is in pure HTML, then you could actually search that through PHP, but this would be more complicated. So I would say you do need to focus on the use of a database for the search function.

  • Author

First and foremost, you need to have server-side script to search your website, in your case PHP I would imagine.

 

In theory, you can avoid the use of a database, but... if your content is in a database then you have no choice.

 

If your content is in pure HTML, then you could actually search that through PHP, but this would be more complicated. So I would say you do need to focus on the use of a database for the search function.

 

 

thanks mate, I've basically just done the w3 course in php; I'm doing the website to get a go and putting a few things into practice. I'll have a go when I get home. thanks again

  • Author

...so if I want the search function to search a static website, (rather than a retail website with a database of products or something similar)

Would I still need a database?

thanks

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.