Importance of SQL in web - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Databases - MySQL, SQL, Oracle, Access and others

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 10-12-2009, 12:22 PM   #1 (permalink)
Junior Member
 
Join Date: Oct 2009
Posts: 2
Default Importance of SQL in web

I have seen many Content Management Systems require SQL. Could you please say how important is sql in web programming ?
egnu is offline   Reply With Quote
Sponsored Links
Old 10-12-2009, 12:50 PM   #2 (permalink)
Junior Member
 
webmasterForums's Avatar
 
Join Date: Aug 2008
Location: Boston, USA
Posts: 59
Default Re: Importance of SQL in web

Well, SQL gives lot of flexibility performing data operations.
webmasterForums is offline   Reply With Quote
Old 10-12-2009, 04:53 PM   #3 (permalink)
Junior Member
 
maverick's Avatar
 
Join Date: Jun 2007
Location: Georgia, USA
Posts: 4
Default Re: Importance of SQL in web

SQL, or Structured Query Language, is a simplistic method of calling for data from database software like Microsoft SQL Server or MySQL databases. Using SQL, you can add, edit and store large or small amounts of data.

If you're getting into website programming, learning SQL is a must if you plan on developing or heavily customizing with web applications to do exactly what you want them to do. This skill is most commonly learned by attempting to make your application do things that you want them to do and learning how other scripts produced a similar result.

For instance, a simple content management system calls data from a database and simply displays it on the webpage.

You might wonder, "Why not just edit the HTML on the page to display the content? Why bother separating the two?"
For one thing, you can do a lot more with plain data in a database than with text on a webpage. In some cases, you can probably get by with just editing the HTML on a page, especially if your doing a small site for someone. But throw a database into the mix to store your content, you can develop a script that not only displays the data on the page, but you can also develop another script that allows the client to login to his site and edit the page without ever seeing one bit of code! (Most people freak out when they see the first bit of code and then try to explain FTP to them)

That makes your life a lot easier now that you don't have to deal with the small content changes on a webpage!

A simple content script outline will look sort of like this:

testscript.php
PHP Code:
  -- (DB)Connect to Database
  
-- (DB)SQL Query (for content See sample below)
  -- 
Header
  
-- Content body (print content from database)
  -- 
Footer
  
-- (DBClose Connection 
Sample SQL Query
PHP Code:
SELECT FROM web_content WHERE content_id=1 LIMIT 1 
(SELECTs all columns FROM the data table "web_content" WHERE the column "content_id" has a value of "1" and LIMITs the number of total results to 1 )

Sample Data Table
PHP Code:
ID   PAGE_TITLE     PAGE_CONTENT
-----|----------------|------------------
1    My page title  Hello World
Hopefully that will help provide a bit more insight as to a database's role in web programming. There are obviously many applications to a database, but in the field of web programming it's most commonly used to manage large amounts of data.
maverick is offline   Reply With Quote
Old 10-12-2009, 09:34 PM   #4 (permalink)
Junior Member
 
Join Date: Oct 2009
Posts: 2
Default Re: Importance of SQL in web

It's clear now. SQL is great! thank you very much
egnu is offline   Reply With Quote
Old 10-15-2009, 12:40 PM   #5 (permalink)
Junior Member
 
Join Date: Oct 2009
Posts: 11
Default Re: Importance of SQL in web

SQL is extremely important, makes your website easy to customize
masterb is offline   Reply With Quote
Old 10-28-2009, 10:50 PM   #6 (permalink)
Junior Member
 
maverick's Avatar
 
Join Date: Jun 2007
Location: Georgia, USA
Posts: 4
Default Re: Importance of SQL in web

Quote:
Originally Posted by parul1234 View Post
with sql ur website would be static
Do you know what you're talking about?
maverick is offline   Reply With Quote
Old 10-31-2009, 11:27 PM   #7 (permalink)
Junior Member
 
Join Date: Oct 2009
Posts: 57
Default Re: Importance of SQL in web

Quote:
Originally Posted by egnu View Post
I have seen many Content Management Systems require SQL. Could you please say how important is sql in web programming ?
SQL is very important if you want to create a database-backed web sites. If your website involves in huge data base SQL is a effective language to design your website.
kimperino1985 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 07:32 AM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting