ciao ragazzi è la prima volta che provo a creare uno script PHP. Devo effettuare un operazione sul database SQL ovvero cancellare da una tabella un determinato dato. Sto usando questo script:
//////////////////////////////////////////////////////////////////////////////////////////
<?php
$db = mysql_connect('xx..xxx.xxx ', 'User', 'Password') or die('Could not connect: ' . mysql_error());
mysql_select_db('Sqlxxxxx') or die('Could not select database');
// Strings must be escaped to prevent SQL injection attack.
$name = mysql_real_escape_string($_GET['name'], $db);
$hash = $_GET['hash'];
$secretKey="xxxxx"; # Change this value to match the value stored in the client javascript below
$real_hash = md5($name . $secretKey);
if($real_hash == $hash) {
$result = mysql_query("DELETE FROM scores WHERE name='$name'");
or die(mysql_error());
}
?>
//////////////////////////////////////////////////////
Sto richiamando questo script da Unity3d. Però quando lo richiamo non avviene nulla all'interno del database! Premettendo che la connessione avviene correttamente, credo che il problema stia nella riga del DELETE... Però non sono sicuro! Grazie in anticipo!

Rispondi quotando
sono bloccato a questo punto
