FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
SQL/Database help

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    The Ville.org Half-Life Gaming Community Forum Index -> General Ramblings
View previous topic :: View next topic  
Author Message
Greebo
Server Admin
Server Admin


Joined: 19 Jul 2001
Location: Scotland
Posts: 1673

PostPosted: Sat Feb 05, 2005 10:01 pm    Post subject: SQL/Database help Reply with quote

Need some help from some clever boffins.

At my university there is a tradition in place known as academic familes - where 3rd years adopt 1st years (in theory, but in practise anyone from 3rd onwards basically can adopt anyone) as their sons and daughters.
Due to the way this works, however, it can frequently be that one can end up in a situation where people end up being their own grandmother or something ridiculous like that.

Attempts to work out the family trees of even a small group of people tend to end up so sprawled that they frequently end up taking up the floor space of an entire room.

So what I want to do is create an online database family tree thing whereby people enter their details plus relatives details etc etc and eventually and hopefully the academic family tree of the entire university will emerge.

I've been looking at sql as a database tool and it seems easy enough - but what I haven't found is a bloody tutorial on how to link it into html pages.

Anyone got any handy links? (or advise - if you think sql is a pile of piss)
_________________
Most evil admin around.
Offical Ville songwriter.
"Captain Smart Ass"
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Jfet Zener
Server Admin
Server Admin


Joined: 19 Feb 2003

Posts: 3353

PostPosted: Sat Feb 05, 2005 10:07 pm    Post subject: Reply with quote

http://www.w3schools.com/sql/default.asp is a good resource. i use it when i forget exact syntax or whatnot. seems, though, the first thing you would need to do is layout the databast. how many tables would you need? what info would be in here, what columns would this info relate to? how would it be set up so that loops dont take place (i.e. you try to show the family of A but A's dad is B and B's dad is A .... A is his own grandpa, as you said). once you have the tables designed, then i think its much easier to put into a database.

as for showing the info in html pages, you would need some sort of server side scripting. if it is running on a windows box, ASP would be the way. if *nix box, then php would probably be easiest.

ASP+SQL tutorial: http://www.aspwebpro.com/tutorials.asp (mainly the Display Data From Database page)

PHP+SQL tutorial: http://sandwil.beigetower.org/PHPsqlCourse/index.php seems to have alot of info about both individualle, and combines them around chapter 14.


Last edited by Jfet Zener on Sat Feb 05, 2005 10:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
Stevo
Ville Supporter
Ville Supporter


Joined: 08 Dec 2002
Location: Orange County Guild: TVR
Posts: 9514

PostPosted: Sat Feb 05, 2005 10:07 pm    Post subject: Reply with quote

Well PHP is fairly easy to use to show SQL data on a webpage. You can PM me for more info if you want to use PHP.
_________________

The Official TVR Website

Fopp
Song of the Week
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Greebo
Server Admin
Server Admin


Joined: 19 Jul 2001
Location: Scotland
Posts: 1673

PostPosted: Sun Feb 06, 2005 12:25 am    Post subject: Reply with quote

Cheers guys - specially for the links - got some reading to do it seems (never used php before).

This is a looooong term project for me - I'll do it in spare time as and when I feel like it. But I'll come calling for help if I need it again.
_________________
Most evil admin around.
Offical Ville songwriter.
"Captain Smart Ass"
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Jfet Zener
Server Admin
Server Admin


Joined: 19 Feb 2003

Posts: 3353

PostPosted: Sun Feb 06, 2005 12:29 am    Post subject: Reply with quote

feel free to PM or IM me. been doing web coding (in PHP and ASP) for at least 4 years. cant remember much before that.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    The Ville.org Half-Life Gaming Community Forum Index -> General Ramblings All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group