1
guy's way i can not execute like this ?
<?php
echo exec('SV/546463748.png');
$url="member.php";
$timeout_minutes = 0;
$timeout_seconds = 1;
sleep($timeout_seconds + $timeout_minutes * 60);
header ('Location: '.$url);
exit;
?>
but if is like this the script worcks
<?php
echo exec('546463748.png');
$url="member.php";
$timeout_minutes = 0;
$timeout_seconds = 1;
sleep($timeout_seconds + $timeout_minutes * 60);
header ('Location: '.$url);
exit;
?>
2
how can i delete more then 1 post ?
if i have this code
select.php
<form action="drop_post.php" method="post">
<?
include "sec/db.php";
$result = mysql_query("SELECT ip,id FROM ip");
$myrow = mysql_fetch_array($result);
do
{
printf ("<p><input name='id' type='checkbox' value='%s'><label>%s</label></p>",$myrow["id"],$myrow["ip"]);
}
while ($myrow = mysql_fetch_array($result));
?>
<input name="submit" type="submit" value="Удалить заметку!!!">
</form>
delet.php
<?php
if (isset($_POST['id'])){$id = $_POST['id'];}
include "sec/db.php";
if (isset($id))
{
$result = mysql_query ("DELETE FROM SV WHERE id='$id'");
if ($result == 'true') {echo "<p>Ваша заметка успешно удалена!</p>";}
else {echo "<p>Ваша заметка не удалена!</p>";}
}
else
{
echo "<p>err</p>";
}
?>
i dont now way its deliting just 1 at time :(