I have a MySQL Table
And the values it contains are for e.x.:+-----+-----+-----+-----+-----+-----+-----+ | mon | tue | wed | thu | fri | sat | sun | +-----+-----+-----+-----+-----+-----+-----+
If the user selects the first and the 5th row I want to parse the rows and insert it into other table like this:+-----+-----+-----+-----+-----+-----+-----+ | mon | tue | wed | thu | fri | sat | sun | +-----+-----+-----+-----+-----+-----+-----+ 1|10/12| |15/18| | | | | 2|8/10 | | | | | | | 3| |10/12| | | | | | 4| | |14/16| | | | | 5|9/11 | | | | | | | +-----+-----+-----+-----+-----+-----+-----+
And check if the rows are repeating... example: mon10 and mod11 is repeating 2 times, then display an error message.mon10 mon11 mon12 wed15 wed16 wed17 wed18 mon9 mon10 mon11
Hope to find a solution for this!
Thanx
Edit by tye
In reply to Inserting sequences without duplicates by husoft
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |