Jump to content

event planner website question

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
the_code_charmer

the_code_charmer

    Learning Programmer

  • Members
  • PipPipPip
  • 68 posts
So i'm trying to make an event planner web site. is it necessary to use a database?

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
No, but it will probably make your life much easier if you do.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
the_code_charmer

the_code_charmer

    Learning Programmer

  • Members
  • PipPipPip
  • 68 posts
that's what i figured...sigh...thanks!!

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Your reaction makes it sound like this is a bad thing. SQL and databases are great things.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
the_code_charmer

the_code_charmer

    Learning Programmer

  • Members
  • PipPipPip
  • 68 posts
yea MySQL is awesome! its PHP that i'm a novice in.

#6
gokuajmes

gokuajmes

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 518 posts
Well as far as i can help you , it is a best practice to separate out your Data from the Front-end. The front end doesnot need to know what is happening in the back (which is your database), Try to make a Database connection class that exposes only methods and properties which will make database calls easily, To make my explanation clearer ,
here is a psedocode:
Data Access Layer

private DataTable runQuery(string strProcedureName,string strInput,boolean blnReturnAll)
{
....
}

PhpCode:

call runQuery('fixEvent','10/20/2010 12:12:00 AM',false);

the above is not php code but just giving you a idea. Php code will not have to know what is happening behind the scenes at all.It just makes a call to the method/function then sits there for a output.You can specify optional parameters like the boolean blnReturnAll if you dont know which table the result you want.

Happy Web Development Days :D

#7
bbqroast

bbqroast

    Codecall Addict

  • Members
  • PipPipPipPipPipPipPip
  • 554 posts
SQL and PHP aren't that bad.
I started not to long ago (I had read on PHP for ages but never done anything).
Once you start its actually quite fun scripting it.
How could you not use PHP (or some other SSI) and SQL.
Unless you wanted to mkae everyone email stuff to you and then you change the content manually.
Please, write clearly with proper structure. Double spacing makes the text feel un-jointed, Capitalizing Every Word Means People Stop Before Every Word Sub-Consciously Which Is A Pain In The Backside, and use code tags! (The right most styling box).