Almanacco del Calcio Toscano

Successo cancellazione rosa

logo fantaeccellenza

[source]
<?php
require_once ‘fanta/utentej.php’;
if($usr_id == 0){
header(‘Location: https://vibrant-bhaskara.185-216-75-167.plesk.page/index.php?option=com_content&view=article&id=81’);
}
require_once ‘fanta/database.php’;

$ccrs =”SELECT *
FROM rosa
WHERE (id_user = $usr_id)”;

$esisters = mysql_query($ccrs);
if (mysql_num_rows($esisters) == 0){
echo ‘<h2 style=”color: #989899; text-align: center;”>’, $usr_name, ‘ non hai la rosa creala da qui<h2>’, ‘<br/ >’, ‘<div style=”text-align: center;”>’;
echo ‘<a class=”btn btn-success” href=”https://vibrant-bhaskara.185-216-75-167.plesk.page/index.php?option=com_content&view=article&id=77″ role=”button”>Nuova rosa</a></div>’;
} else {
$csr = “DELETE
FROM rosa
WHERE (id_user = $usr_id)”;

$cvdrs = mysql_query($csr);

$csq = “DELETE
FROM squadra
WHERE (id_user = $usr_id)”;

$cvdsq = mysql_query($csq);

echo ‘<h2 style=”color: #989899; text-align: center;”>’, $usr_name, ‘ hai cancellato la rosa e tutte le giornate<h2>’, ‘<br/ >’, ‘<div style=”text-align: center;”>’;
echo ‘<a class=”btn btn-success” href=”https://vibrant-bhaskara.185-216-75-167.plesk.page/index.php?option=com_content&view=article&id=77″ role=”button”>Nuova rosa</a></div>’;

}

mysql_close($link);

?>
[/source]