www.webdeveloper.com
Results 1 to 2 of 2

Thread: Do I use SQL or PHP or both for the relations between tables?

  1. #1
    Join Date
    Aug 2011
    Posts
    1

    Do I use SQL or PHP or both for the relations between tables?

    Hi

    I'm building a website in which you can join leagues, and play against each other. I have learnt some SQL in school, but that was very theoretical. Now I'm trying to build my own website and I'm having problems.

    So I have these different tables: users, leagues, league participant, match and some others. Do I define the relation between these tables in SQL, or not. Is editing in PHP enough?

    Thanks

  2. #2
    Join Date
    Nov 2006
    Location
    Springfield, MO
    Posts
    1,541
    Relationships are defined in SQL. You can use PHP to help bring back a result set and make decisions based on that result set.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles