English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Can I restrict access to certain tables within my SQL database, rather than have all users having access to everything?
Is this done at PHP level or on the SQL database? or could it be both?

2007-02-04 05:32:15 · 2 answers · asked by mcsy_2000 1 in Computers & Internet Programming & Design

2 answers

This is typically done at PHP level.

Typically you have an application user (with access control handled by the application,) and a database user (with access control handled by the database)

Your database user probably doesn't change (the information used in the connect command)

2007-02-04 05:50:41 · answer #1 · answered by Vegan 7 · 0 0

They can change their IP yes or it can automatically change. You can simple use session data as a means of stopping them voting until the session runs out however it would be much more prudent to make a login script as to have proper accounting to then track what people have and haven't voted for. You can also stores these session keys and reassign them when a particular person logs bag in but for simplicity sake just make it so one session needs to end before voting again and stop the same IP voting twice.

2016-05-24 04:10:28 · answer #2 · answered by Elizabeth 4 · 0 0

fedest.com, questions and answers