Hi!
I got this crazy idea:
On a page I got some headlines with some text between (all from a mySQL db). I would like to have each of those headlines in a different, random color from a group of predefined colors, e.g. one headline in red, one in green and one in blue, so that the color of each headline changes when reloading the page.
Is it possible? I'm still pretty new i PHP and don't have the faintest idea of how to do it.

Why don't you define a group of colors like this in a separate include file or elsewhere:
(Include ("colorgenerator.inc") :

$ColorNumber = 7;
$sec = Date(s);
$Color = $sec % $ColorNumber;
$Color +=1;
if ($Color==1) {
$FontString="#FF0066";
}
elseif ...
Then put the variable where you want the color to be with <font color="<? $FontString ?>">.
This will be functional enough if you have not many colors (better less than 10), and I guess you don't need more than 10, colors don't always go with each other.