Blue_UK
01-01-06, 09:49 AM
Hi,
Having aquired a basic knowledge of Windows, Apache, MySQL and PHP I would like to make a fourm-like web application. My current implementation is rather basic and will die if you post any characters that can be interpreted as SQL... eg. posting " /c; drop table posts; " would kill the whole thing. There are functions that can 'escape' or 'slash' out dodgy chars, but is there another way?
Also, what is the table definition for the post table for a fourm like this one? I understand it will almost certainly be a relational database with many tables.
I'm using the 'TEXT' datatype to store the actual post content.
Any pointers greatly appreciated.
BRB 1 week.
Having aquired a basic knowledge of Windows, Apache, MySQL and PHP I would like to make a fourm-like web application. My current implementation is rather basic and will die if you post any characters that can be interpreted as SQL... eg. posting " /c; drop table posts; " would kill the whole thing. There are functions that can 'escape' or 'slash' out dodgy chars, but is there another way?
Also, what is the table definition for the post table for a fourm like this one? I understand it will almost certainly be a relational database with many tables.
I'm using the 'TEXT' datatype to store the actual post content.
Any pointers greatly appreciated.
BRB 1 week.