ecco questo è il codice in php


Codice PHP:
$db_host "localhost";
$db_user "ha";
$db_password "m4";
$db_name "in";
$db mysql_connect($db_host$db_user$db_password);

mysql_select_db($db_name$db)
or die (
"Errore nella selezione del database. Verificare i parametri nel file config.inc.php");

function 
storeLink($url,$gathered_from) {
    
$query "INSERT INTO botlink (url, gathered_from) VALUES ('a', b')";
    
mysql_query($query$db) or die('Error, insert query failed'); 
e si ferma qui mysql_query($query, $db) or die('Error, insert query failed');

dove sbaglio?