Search found 8 matches
- Sun Aug 26, 2007 4:07 pm
- Forum: PHP - Security
- Topic: Is this mySQL code safe form attack?
- Replies: 7
- Views: 1942
This script is an include stored outside of your public directory right? also, I'm using a similar mysql_real_escape_string, except mine makes no exception for numbers. What is that for? I was just wondering if mysql_real_escape_string by itself, is enough security for basic form inputs before bein...
- Sun Aug 26, 2007 3:37 pm
- Forum: PHP - Security
- Topic: Is this mySQL code safe form attack?
- Replies: 7
- Views: 1942
- Sun Aug 26, 2007 10:00 am
- Forum: PHP - Security
- Topic: Is this mySQL code safe form attack?
- Replies: 7
- Views: 1942
Is this mySQL code safe form attack?
I'm pretty new to php and recently discovered mysql_real_escape and would just like to ask if this code is safe from attack. function check_input($value) { // Stripslashes if (get_magic_quotes_gpc()) { $value = stripslashes($value); } // Quote if not a number if (!is_numeric($value)) { $value = &quo...
- Wed Aug 15, 2007 8:37 am
- Forum: PHP - Code
- Topic: Runescape Highscores [solved]
- Replies: 3
- Views: 603
- Wed Aug 15, 2007 8:08 am
- Forum: PHP - Code
- Topic: Runescape Highscores [solved]
- Replies: 3
- Views: 603
Runescape Highscores [solved]
Hi I'm desiging a website for a clan I am in for a game called Runescape. I would like to design a hiscore list for clan members which grabs their highscores from the website. The address for the highscores is http://hiscore.runescape.com/index_lite.ws?player=King_Spengo and displays the following i...
- Sat Jun 16, 2007 9:04 am
- Forum: PHP - Code
- Topic: Inserting Data into Table [solved]
- Replies: 3
- Views: 511
- Sat Jun 16, 2007 8:43 am
- Forum: PHP - Code
- Topic: Inserting Data into Table [solved]
- Replies: 3
- Views: 511
- Sat Jun 16, 2007 7:25 am
- Forum: PHP - Code
- Topic: Inserting Data into Table [solved]
- Replies: 3
- Views: 511
Inserting Data into Table [solved]
Hi I am attempting to design my own forum, at the moment I am working on adding new topics. There are two tables which I need to insert data into; topics and posts. I've got the first bit figured out; entering data into the topics table: mysql_query("INSERT INTO topics (forum_id, topic_title, t...