Php kodu anlamak için açılamıyor

0 Cevap

Herhangi biri bana aşağıda verilen php kodunu anlamaya yardım edebilir misiniz.

function do_the_query($db, $query)
{
    $result = mysql_db_query($db, $query) or print("$query<BR>" . "<B>" . mysql_errno() . ": " . mysql_error() . "</B><BR>\r\n<BR>\r\n");
    return $result;
}

/* funzione frontend per generare numeri pseudo-casuali */
function random($max)
{
    srand((double)microtime() * 1000000);
    return rand(1, $max);
}
?>

0 Cevap