Se i tips sono tanti metti tutto quanto in un database mysql.
Oppure, se non sono tantissimi, mettili su un file di testo o come ti ha detto qualcuno in un array.
Se usi MYSQL (te lo consiglio, viene tutto più ordinato) fai una query tipo questa:
Codice PHP:
$query = "SELECT * FROM tips ORDER BY RAND()";
Il database mysql strutturalo così:
codice:
CREATE TABLE tips (
id INT (10) UNSIGNED NOT NULL AUTO_INCREMENT,
autore CHAR (50) NOT NULL,
titolo CHAR (100) NOT NULL,
testo TEXT NOT NULL,
cat SMALLINT(3) UNSIGNED NOT NULL,
quando DATETIME NOT NULL,
PRIMARY KEY(id)
);
La colonna CAT si riferirà a un array contenente la lista delle categorie di riferimento, ad esempio
Codice PHP:
$CAT[0] = "Networking";
$CAT[1] = "BLABLA";
$CAT[2] = "...";
Ciao!