ok ty, working with mysql::result. Now i have another doubt.
Using rand function like this:
set n [rand 5]
what's the range for the rand? 1-5? 1-4?
Code: Select all
set sql "SELECT id FROM news"
set query [mysql::query $db_handle $sql]
if {[set row [mysqlnext $query]] != ""} { incr n 1 }
putquick "PRIVMSG #test:$n news registered."