Search found 8 matches

by king spengo
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...
by king spengo
Sun Aug 26, 2007 3:37 pm
Forum: PHP - Security
Topic: Is this mySQL code safe form attack?
Replies: 7
Views: 1942

Thank you for your psts and suggestions.
by king spengo
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...
by king spengo
Wed Aug 15, 2007 8:37 am
Forum: PHP - Code
Topic: Runescape Highscores [solved]
Replies: 3
Views: 603

The values in bold are the player's skills in the game which range from 1 to 99, it is those values I wish to display in my own hiscore list.
by king spengo
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...
by king spengo
Sat Jun 16, 2007 9:04 am
Forum: PHP - Code
Topic: Inserting Data into Table [solved]
Replies: 3
Views: 511

Thank you again, problem solved.
by king spengo
Sat Jun 16, 2007 8:43 am
Forum: PHP - Code
Topic: Inserting Data into Table [solved]
Replies: 3
Views: 511

Thank you Feyd I'll check that out.
by king spengo
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...