Well, I keep my internal script variables identical to the relevant MySQL
variable , with the exception of putting the type identifier in front of the
script variable (s for string, i for int, etc...)

I do the exact opposite of form data in trying not to have a form variable
with the same name as a MySQL variable. The user being able to guess at
column names in the database isn't usually a good thing for security
reasons.

Chris

-----Original Message-----
From: Paul Fine [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 8:17 AM
To: [EMAIL PROTECTED]
Subject: Variable names, colum names


Greetings!

Is it common practice to name script variables/form data in say PHP to match
the appropriate colums in the db tables?

I can see how this makes sense, however in the little work I have done I
preferred to do the opposite as it seems to be helpful to keep a
distinction.


Thanks!


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to