Fragen zu allen Themen rund ums Programmieren außerhalb von phpBB können hier gestellt werden - auch zu anderen Programmiersprachen oder Software wie Webservern und Editoren.
$sql = "UPDATE ".$table_prefix."confirm SET time = '".time()."' AND `code` = '".$code."' WHERE `ip` = '".$_SERVER['REMOTE_ADDR']."'";
ich will 2 sachen gleichzeitig updaten das 2te, will aber net ...
Bitte keine Anfragen mehr per PN When you get me on my nerven I put you in the Gully and do the Deckel drüf and you never will come back to the Tageslicht.
Bitte keine Anfragen mehr per PN When you get me on my nerven I put you in the Gully and do the Deckel drüf and you never will come back to the Tageslicht.
$sql = "SELECT * FROM ".$table_prefix."confirm";
$result = $db->sql_query($sql);
while ($row = mysql_fetch_assoc($result))
{
if ($row['time'] <= $row['time']+(5*60))
{
$sql = "DELETE FROM ".$table_prefix." WHERE time = '".$row['time']+(5*60)."'";
$db->sql_query($sql);
}
}
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '300'' at line 1
Bitte keine Anfragen mehr per PN When you get me on my nerven I put you in the Gully and do the Deckel drüf and you never will come back to the Tageslicht.
while ($row = mysql_fetch_assoc($result))
{
if ($row['time']+(5*60) < time())
{
$sql = "DELETE FROM ".$table_prefix." WHERE time = '".$row['time']."'";
$db->sql_query($sql);
}
}
jetzt müsste es stimmen oder?
Bitte keine Anfragen mehr per PN When you get me on my nerven I put you in the Gully and do the Deckel drüf and you never will come back to the Tageslicht.
und was will ich jetzt damit? mein feld in der datenbank heißt time. das script funktioniert jetzt einwandfrei, wo liegt dein problem jetzt?
Bitte keine Anfragen mehr per PN When you get me on my nerven I put you in the Gully and do the Deckel drüf and you never will come back to the Tageslicht.