Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $sql = mysqli_query($con, "SELECT * FROM `tests` WHERE `VID` BETWEEN (SELECT MAX(`VID`) FROM `tests`)-6 AND (SELECT MAX(`VID`) FROM `tests`)-3 ORDER BY `SID` ASC, `VID` ASC;");
- INSERT INTO `tests` (`ID`, `SID`, `VID`, `Text`) VALUES
- (1, 1, 1, 'test'),
- (2, 1, 2, 'test'),
- (3, 1, 3, 'test'),
- (4, 1, 4, 'test'),
- (5, 1, 5, 'test'),
- (6, 1, 6, 'test'),
- (7, 1, 7, 'test'),
- (8, 1, 8, 'test'),
- (9, 1, 9, 'test'),
- (10, 1, 10, 'test'),
- (11, 1, 11, 'test'),
- (12, 2, 1, 'test'),
- (13, 2, 2, 'test'),
- (14, 2, 3, 'test'),
- (15, 2, 4, 'test'),
- (16, 2, 5, 'test'),
- (17, 2, 6, 'test'),
- (18, 2, 7, 'test'),
- (19, 2, 8, 'test'),
- (20, 3, 1, 'test'),
- (21, 3, 2, 'test'),
- (22, 3, 3, 'test'),
- (23, 4, 1, 'test'),
- (24, 4, 2, 'test'),
- (25, 4, 3, 'test'),
- (26, 4, 4, 'test'),
- (27, 4, 5, 'test'),
- (28, 4, 6, 'test'),
- (29, 4, 7, 'test'),
- (30, 4, 8, 'test'),
- (31, 4, 9, 'test');
Add Comment
Please, Sign In to add comment