Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Techie question from a non-techie (https://www.warriorforum.com/programming/706140-techie-question-non-techie.html)

StingGB 2nd November 2012 10:43 PM

Techie question from a non-techie
 
You are going to tell pretty quickly I'm not at all software/programming savvy!

Basically, I've seen sites whereby you can click various options of something (little round buttons to click in) and you are taken to the appropriate page.

For example - Jeans. You click the color of jeans you want from a choice of sizes, you click the waist size from a choice of waist sizes buttons, the inside leg etc., click search and hey-presto you are taken to a separate page with the jeans you want.

My question is; how is this done from the website builders point of view? What database software is behind it, and how would you go about building something like this? Wordpress is the only platform I have experience of btw.

Another way to explain my question is take this page: http://www.10best.com/destinations/c...ary/nightlife/ You can click the type of nightlife you want; club, bar etc. The type of entertainment etc. and then you are taken to the correct page. There are hundreds of combinations possible, what software is behind this?

Thanks, Brian.

StingGB 2nd November 2012 11:05 PM

Re: Techie question from a non-techie
 
Care to name any?

lovboa 2nd November 2012 11:07 PM

Re: Techie question from a non-techie
 
Quote:

Originally Posted by DEaFeYe (Post 7282311)
I can think of about 5 million ways to accomplish things like this...

And yet you don't answer his questions with even one of them.

StingGB 3rd November 2012 01:04 AM

Re: Techie question from a non-techie
 
At least you are doing something useful with your hands.

Can any of the usually friendly people on Warrior help me please?

ahmiz 3rd November 2012 02:30 AM

Re: Techie question from a non-techie
 
Since you are familiar with Wordpress, you can stick with PHP for the server-side code and MySQL for the database.

For client-side, standard HTML and Javascript (with maybe some jQuery if you need to spice things up) would be needed, as well as some CSS for the layout/styling.

If you have a Wordpress site, you can create a custom Wordpress plugin with the same functionality. Wordpress plugins all use the same technologies as I've mentioned above. The PHP code just has to be coded in a slightly different way.

oliviacis 3rd November 2012 07:04 AM

Re: Techie question from a non-techie
 
Quote:

Originally Posted by StingGB (Post 7282301)
My question is; how is this done from the website builders point of view? What database software is behind it, and how would you go about building something like this? Wordpress is the only platform I have experience of btw.

Thanks, Brian.

The type of site you are talking about is called as ecommerce website.

The main thing involved in this is the Content management system i.e CMS. A CMS uses templates to control the display of your content -- that is, the way your content will look on a page. At the center of any CMS is some sort of repository, or content database, where the content is stored.

You might find this helpful: techsoup.org/learningcenter/webbuilding/archives/page9347.cfm
(in case you wish to get into details).

There are many CMSs available for building ecommerce sites, particularly. Examples include opencart, zen-cart and magento, magento being the best one(as per my knowledge).

Ttrain 3rd November 2012 10:24 AM

Re: Techie question from a non-techie
 
@DEaFeYe that made me laugh, even though It didn't do much to answer the question.

@StingGB Before I explain quickly how its done, unless you want to learn how to program (which would be great) you should probably stick with a plugin or something because what your asking is easy if you know what your doing, but a headache if your just getting started. With that out of the way, here's one way to accomplish what your asking:

NIGHTLIFE EXAMPLE:

step 1) user comes to your website and fills out a form with different options. Lets say they entered "Pub, DJ's,Airport", under "Type,Entertainment,Neighborhood" respectively.

step 2) The data is sent to the server, which holds a script (which you would have created) that will most likely query(search) a database, based on the keywords entered.

step 3) the database searches for matching words. so it would look under a table called nightlife. with columns that probably said "Type,Entertainment,neighborhood".

step 4) The query would have been constructed based on the keywords that i mentioned above,so it would look something like this:

mysqli_query("SELECT 'ID' FROM nightlife WHERE Type = 'pub' AND entertainment ='dj's' .......LIMIT 10);

STEP 5) that very basic query would return up to 10 IDS (relative to what you searched for). Which are like credit card numbers. They're all unique. once you had those id's you would run another query that searched for those ID's in a different table (this could actually be optimized so it could all be done at once). that table would have a list of every option you could possibly search for. But you would only grab up to 10 of those, and there IDS would exactly match the ones returned from the first query.

STEP 6) from there your original script would just output the data on the page as html.

I probably confused the heck out of you because I confused myself a little writing this. But the basic idea is that user submits data - server processes data - script outputs data onto page.

FirstSocialApps 3rd November 2012 11:59 AM

Re: Techie question from a non-techie
 
Quote:

Originally Posted by StingGB (Post 7282301)
Basically, I've seen sites whereby you can click various options of something (little round buttons to click in) and you are taken to the appropriate page.
.

Are you talking about radio buttons with an onclick redirect?

<input type="radio" onclick="window.location='yoururl';">

StingGB 4th November 2012 08:52 PM

Re: Techie question from a non-techie
 
Thanks everyone for your help, some ideas I can get my teeth into. & yes, FirstSocialApps, just cut & pasted that html, and what I now know are called Radio Buttons are exactly what I was talking about. Just got to figure out how to organize the data behind them now!

Bryan Zazz 5th November 2012 05:38 PM

Re: Techie question from a non-techie
 
Quote:

Originally Posted by StingGB (Post 7282301)
My question is; how is this done from the website builders point of view? What database software is behind it, and how would you go about building something like this? Wordpress is the only platform I have experience of btw.

Another way to explain my question is take this page: Calgary Nightlife: Night Club Reviews by 10Best You can click the type of nightlife you want; club, bar etc. The type of entertainment etc. and then you are taken to the correct page. There are hundreds of combinations possible, what software is behind this?

Thanks, Brian.


If you want to see how a page works, I usually right-click it, and select the "view page source".
Most of that on-page magic is done by a little library called jquery.

DB? Can't really say what's going on behind the curtains there. MySQL is a popular choice
for web sites, so here's a hint for you. But this doesn't really matter: all DBs (RDBMS) speak SQL,
so as long as you can talk SQL, any DB will do (more or less)

More specifically to your question, 2 softwares are "behind" the process of clicking
links and seeing stuff changing on screen:
  • your browser (FF, Chrome, etc)
  • some http/s server (Apache, or other)
Basically you clicking a link makes your browser send a "request" to the server
living at that URL (technically: the server listening to ports 80 or 443).
The server then sends your browser a "response", and displays it to you.
That's it in a nutshell...


All times are GMT -6. The time now is 08:32 AM.