Buonasera
Avrei gentilmente bisogno del vostro aiuto.
Vorrei convertire questa parte di codice php per adattarle alle estensioni di MYSQLi.
Grazie.
codice HTML:
$sql = "SELECT str_data FROM news WHERE str_data= $data ORDER BY id DESC LIMIT 0, 50";
$result = @mysql_query($sql) or die (mysql_error());
if(@mysql_num_rows($result) > 0)
{
while($fetch = @mysql_fetch_array($result))
{
$str_data = $fetch['str_data'];
if ($str_data == $data)
{
$day = "<a href=\"eventi.php?day=$str_data\">$day</a>";
}
}
}