ok, lets say I have a simple user input form which they can enter some information and input it to a table.
Is it better to have the form code before the SQL code or after?? I mean, is it better to have the brains of the code before or after the cosmetic features??
I know the code normally runs in order from top to bottom but I've seen examples where the bulk of the workings code comes before the input form(<--cosmetic feature)....
Does anyone understand what I'm getting at? Are there any tutorials about the layout of good code or any set rules I should abide by??
TIA.
Tony
Is it better to have the form code before the SQL code or after?? I mean, is it better to have the brains of the code before or after the cosmetic features??
I know the code normally runs in order from top to bottom but I've seen examples where the bulk of the workings code comes before the input form(<--cosmetic feature)....
Does anyone understand what I'm getting at? Are there any tutorials about the layout of good code or any set rules I should abide by??
TIA.
Tony