I have a member only part of my site and I'm using a form for me as the only user to update a database.
The first thing that happens on the PHP-based form processing page is something along these lines...
if($_SESSION['member_id'] != 1){
exit;
} else {
//post stuff to db.
}
So, basically if your member_id isn't 1, then the script stops.
One piece of data I'll be posting is a string that may contain quotes.
Question: In this environment, can I simply use addslashes()
for the string that may contain quotes and feel reasonably safe that I won't do something unintentionally bad to my database?
Thanks.