insert into MySQL with URL String
===

Cant seem to get this to work. could some one please point me out into the right direction with an example how to fi this. thank you.
i need this url
domain.com/script.php?from=1123&message=1234454

to insert velues into my table

    <?php

    mysql_connect('localhost', 'user', 'pass');

    mysql_select_db('dbname');

    $sql = "insert into table (from, message) values ('".$_GET['from']."','".$_GET['message']."')"; 
    if(!$sql){ 
    echo "Error " . mysql_error(); }
    else{ echo "Success"; }

    ?>