Ciao a tutti e buon natale.
Devo fare una cosa del genere:
Codice PHP:
DELETE FROM presenti WHERE Giorno =! Oggi
Se tra un agnello e l'altro potete aiutarmi!![]()
ancora auguri
Ciao a tutti e buon natale.
Devo fare una cosa del genere:
Codice PHP:
DELETE FROM presenti WHERE Giorno =! Oggi
Se tra un agnello e l'altro potete aiutarmi!![]()
ancora auguri
http://codecanyon.net/category/all?ref=Manuelandro
And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
memories to be made
Dipende in che formato è la data nella tabella del DB.
Puoi fare un confronto tra i due TIMESTAMP.
![]()
[ La vità è un'ostacolo ... superalo non evitarlo ! ]
[ Il perdono è un'artifico inventato dall'uomo per ovviare all'irrepitibilità della storia. ]
Giorno è un semplice camo DATE.
http://codecanyon.net/category/all?ref=Manuelandro
And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
memories to be made
va bene una cosa del genere?
Codice PHP:
$query = "SELECT UNIX_TIMESTAMP(Accesso) AS Accesso FROM pgu";
$result = mysql_query($query, $db);
$off = mysql_fetch_array($result);
$query = "SELECT * FROM pgu WHERE $off[Accesso] =! NOW()";
$result = mysql_query($query, $db);
$off2 = mysql_fetch_array($result);
$query = "DELETE FROM presenti WHERE Nick='$off2[Nick]'";
$result = mysql_query($query, $db);
http://codecanyon.net/category/all?ref=Manuelandro
And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
memories to be made
no NOW() non va bene...forse mktime()???
http://codecanyon.net/category/all?ref=Manuelandro
And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
memories to be made
up
http://codecanyon.net/category/all?ref=Manuelandro
And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
memories to be made
perché NOW() non va bene?ti dà errori?
io ho appena provato questa query su una mia tabella e funziona:
prova ad eseguire la tua aggiungendo la notazione dell'errore e vedi se ti restituisce qualcosa [mysql_query($query)or die(mysql_error()); ]codice:SELECT * FROM `name_tbl` WHERE data NOT LIKE NOW()
![]()
Talvolta anche una persona apparentemente inutile si rivela un abile samurai dalla forza di mille uomini, dimostrando di poter rinunciare alla vita e che il suo cuore si è completamente identificato con quello del suo padrone
ehi grazie funziona così!![]()
http://codecanyon.net/category/all?ref=Manuelandro
And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
memories to be made
no spè...
..fatto in questo modo, cioè come mi servirebbe non va.n.b. cioè selezionare solo quelli che hanno effettuato l'accesso almeno da oggiCodice PHP:
$query = "SELECT * FROM presenti WHERE Accesso LIKE NOW() ORDER BY `Nick` ASC";
$result = mysql_query($query, $db);
dove Accesso è un campo DATE.
http://codecanyon.net/category/all?ref=Manuelandro
And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
memories to be made
ah che scemo! Il LIKE con un campo DATE! SI usa =![]()
grazie lo stesso ciao
http://codecanyon.net/category/all?ref=Manuelandro
And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
memories to be made