vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Conditional search using PHP/SQL: like 'browse' on Myspace (https://vborg.vbsupport.ru/showthread.php?t=116329)

lightnb 05-21-2006 10:42 PM

Conditional search using PHP/SQL: like 'browse' on Myspace
 
how would you code a script that searches a SQL database based on values in a form, and then returns a list of items that meet your requirements? like how the "browse" function works on myspace?

for exampe:

'list all of the people that have red hair and have green eyes and are single'

Is there something lke this already availible, since its used in lots of different places?

thanks,

Nick

sabret00the 05-22-2006 01:42 PM

you might be able to get something off on one of the free script sites, however there's nothing like that for vBulletin, though there's something close made by Andreas i beleive.

I would personally suggest coding it yourself.

ericgtr 05-22-2006 02:20 PM

^^ Agreed. However, here is a list of current parameters that are built in for reference. http://www.vbulletin.com/forum/showthread.php?t=107955

lightnb 05-26-2006 02:21 AM

I would love to code it myself, but am not expirienced enough with PHP to write a script from scratch. I wouldn't know where to start.

It doesn't neccessarily have to integrate with vB- it just has to be on a "vB compatible" page. (by vB compatible I mean able to access the vB log-in and permissions system)

The database that it is quererying is independant from the vB database. It's actually to browse microphones based on criteria:

For example, in my table 'microphones' I have fields: make, model, frequency response, max spl, etc..

The user should be able to go to a microphone browse form, choose 'Shure' in the "make" drop down box, and when they click submit, it returns a list of all microphones in the database whos make is shure.

I'm not even sure of where to begin- I guess i'd need to see an example, and could figure out how it works from that.


All times are GMT. The time now is 09:09 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00928 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete