Hi, i have this script wich basically connects to a database and delete a record according to the Id parameter given. The problem is that when i test it i get this error: *Parse error*: syntax error, unexpected T_ELSE in * /var/www/biblio/scripts/delete.php* on line *31 This is the script: *<?php /* deletescore.php: deletes record for passed id from highscores table and returns status to Flash */ // fill with correct data for your server configuration $server = "localhost"; $username = "root"; $password = "itsveryeasy"; $database = "biblioteca"; //connect to database added by calm mysql_connect($server, $username, $password); if (!mysql_connect($server, $username, $password)) { $r_string = '&errorcode=1&'; } elseif (!mysql_select_db($database)) { $r_string = '&errorcode=2&'; } else { $del_str = "DELETE FROM libros WHERE bnumero=".$_GET['Id']; if (!mysql_query ($del_str)) { $msg = mysql_error(); $r_string = '&errorcode=3&msg='.$msg; } else { $r_string = '&errorcode=0&'; } } else { $r_string = '&errorcode=4&'; } echo $r_string; ?> Wha am i doing wrong?? Thanks. Javier