Hi,
I have a simple database containing 30 rows of information. Let's say they are just different lines of html code.
What I want to do is grab ALL of those 30 rows of information, and output them into simple text files, with each file containing not more than 3 rows of information, without repetitions.
I plan to use this command to randomize the mysql rows:
$sql = "SELECT * FROM table name order by rand()";
Now how could i generate 10 different files containing 3 rows each without repetitions in 1 step?
I tried using 'for' statements and 'while' statements, but i cannot get the code to write to more than one file properly...
Could someone please help me out?
Thank you