...

View Full Version : Javascript Database Product Search and Display?



fightapilotdean
03-22-2012, 12:29 PM
hi,
im fairly new to javascript but i know the basics.
im just wondering is there a possibility to make a search that will connect to my databse with a product list in it, and then display any matches to what the user searched for?
help is always helpful :)

devnull69
03-22-2012, 12:57 PM
You cannot do this with Javascript only. You'll need an intermediate server side script (like PHP or Perl etc) that will connect to the database, execute some query and return (output) the result. Javascript will then only request this server side script and can access the output of this script after the request finishes.

Keyword: Ajax

fightapilotdean
03-22-2012, 01:35 PM
ahhh :/ is this easy to do then with php. but what is more reliable php or aspx. iv used php and i can do a log in system but for asp i find it confusing. thank you for reply :)

Old Pedant
03-22-2012, 10:43 PM
Use what you are comfortable with. PHP, JSP, ASP, ASP.NET, CGI, etc.

And don't forget you also have to choose a database system: SQL Server, Oracle, MySQL, etc.

But also use what your server supports. Only Windows will support ASP or ASP.NET. Only Windows will support SQL Server. Linux systems usually come with PHP and MySQL already configured. So your choices may be constrained by what server you have available, anyway.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum