[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 02-06-2006, 04:53 PM   #1 (permalink)
NamePros Regular
 
Join Date: Jul 2005
Location: U.S.A.
Posts: 655
0.00 NP$ (Donate)

Coolprogram has a spectacular aura aboutCoolprogram has a spectacular aura about


SQL again.

How do you work a SQL code, I would like to know.
What i mean by this is like with a search engine, they use the SQL that just opens everything in thier database. How would i do it, 'cause I am going to eventually make a forum, I hope.
-CP
Coolprogram is offline  
Old 02-06-2006, 07:19 PM   #2 (permalink)
A Wealth of Knowledge
 
stscac's Avatar
 
Join Date: Aug 2004
Posts: 3,794
47.60 NP$ (Donate)

stscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud of


There's a lot that you need to know when talking about SQL; In my opinion, my importantly security.

Depending on what SQL database you want to use (I assume for mainstream web projects - MySQL) and what programming language you prefer (for me, it's PHP), you can find a variety of resources on development sites. If you're not interested in those that I listed above, you can search "[language] [database] resources". If you're interested in the conbination that I listed above, look below.

http://www.php-mysql-tutorial.com/
http://www.php.net/mysql

-Steve
stscac is offline  
Old 02-06-2006, 07:32 PM   #3 (permalink)
NamePros Regular
 
moondog's Avatar
 
Join Date: Jun 2004
Posts: 476
3,677.00 NP$ (Donate)

moondog is a glorious beacon of lightmoondog is a glorious beacon of lightmoondog is a glorious beacon of lightmoondog is a glorious beacon of lightmoondog is a glorious beacon of lightmoondog is a glorious beacon of light


Cool:

Basically, you issue, then you get the results to maniuplate.

something like this:

PHP Code:
$sql = "select * from table where lastName='lastname'";
$result = mysql_query($sql);
Queries can returm multiple rows. You can then loop through them like this:

PHP Code:
while($row=mysql_fetch_array($result)) {
   
# $rowis an array with the field names as the array indices.
   
echo "Last Name: $row[lastName]<br>";
   echo
"First Name: $row[firstName]<br>";
}
THis example is over simplified. As STSCAC suggests, you will need to doa bucnh of reading up on this subject.

-Bob

[/php
__________________
The mass purge has begun.
moondog is offline  
Old 02-10-2006, 01:41 PM   #4 (permalink)
NamePros Regular
 
Join Date: Jul 2005
Location: U.S.A.
Posts: 655
0.00 NP$ (Donate)

Coolprogram has a spectacular aura aboutCoolprogram has a spectacular aura about


Thanks, u guys.
-CP
Coolprogram is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Injection Prevention axilant CODE 14 10-03-2005 12:34 PM
Free cPanel, RvSkins, Fantastico, SQL Hosting! dc1pop Web Hosting Offers 0 06-26-2005 07:29 AM
$ 6.95 Windows Hosting :: MS SQL, ASP.NET, Cold Fusion, Oracle, Multiple domains JodoHost Web Hosting Offers 0 03-27-2005 04:36 AM
Connecting to your SQL Database using Enterprise Manager priyanka[imported] Web Hosting Discussion 1 12-07-2004 03:21 PM
Connecting to your SQL Database using Enterprise Manager priyanka[imported] Webmaster Tutorials 0 12-06-2004 08:58 PM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 08:23 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85