oh no, dont worry, ive done all my homework for people joining the site, it uses regular expressions to verify what goes into the database, so no worries there...
getposts() is linked to SELECT * From Posts WHERE Forum_IDfk = '"& forum &"' ORDER BY Dateposted DESC.
what i dont understand is that half my data returns fine to the page but the rating which is: rating DECIMAL(4,2) DEFAULT '5',
why is it not returning this value correctly?
my table creation is:
CREATE TABLE Members (
Member_ID MEDIUMINT UNSIGNED PRIMARY KEY AUTO_INCREMENT NOT NULL UNIQUE,
Username VARCHAR(20) UNIQUE NOT NULL,
Password VARCHAR(40) NOT NULL,
Firstname VARCHAR(50) NOT NULL,
Lastname VARCHAR(50) NOT NULL,
Email VARCHAR(50) UNIQUE NOT NULL,
Gender VARCHAR(12) NOT NULL DEFAULT 'Undisclosed',
Dateofbirth DATE NOT NULL,
Orientation VARCHAR(12) NOT NULL DEFAULT 'Undisclosed',
Status VARCHAR(20) NOT NULL DEFAULT 'Undisclosed',
Signature VARCHAR(100),
Webpage VARCHAR(255) DEFAULT '';
Account VARCHAR(10) NOT NULL DEFAULT 'PENDING', # DELETED, SUSPENDED, ACTIVE, PENDING
Accountverify SMALLINT UNSIGNED NOT NULL,
Accountvisits MEDIUMINT UNSIGNED NOT NULL DEFAULT 0,
Rating DECIMAL(4,2) DEFAULT '5',
Rates MEDIUMINT UNSIGNED DEFAULT 0,
Datejoined TIMESTAMP NOT NULL DEFAULT NOW(),
Lastloggedin TIMESTAMP NOT NULL DEFAULT 0,
Logincount MEDIUMINT UNSIGNED DEFAULT 0,
Country VARCHAR(255) NOT NULL,
Location VARCHAR(255),
Postcode VARCHAR(10),
Posts MEDIUMINT UNSIGNED NOT NULL DEFAULT 0,
Profileheader VARCHAR(100),
Profiletext TEXT,
Interests VARCHAR(255),
Profilepicture VARCHAR(255) NOT NULL DEFAULT 'nopic',
Avatar VARCHAR(255) NOT NULL DEFAULT 'noavatar'
);