Page 1 of 1

edit

Posted: Mon Mar 03, 2014 3:49 pm
by etsted
how can i allow users to select they're own file and delete it`?

Re: edit

Posted: Mon Mar 03, 2014 4:36 pm
by requinix
By building a web page for that.

How about you try explaining yourself?

Re: edit

Posted: Tue Mar 04, 2014 12:45 am
by etsted
i have a site where all of a persons files are displayed. how do i make a checkbox next to each of them, so that they can select that one, and delete it?

Re: edit

Posted: Tue Mar 04, 2014 12:04 pm
by etsted
if(isset($username))
{
$query = mysqli_query($con, "SELECT * FROM videos WHERE user='$username'") or die(mysqli_error());
while($row = mysqli_fetch_array($query))
{
$title = $row['title'];
$url = $row['url'];
$description = $row['description'];
$description = nl2br($description);

echo "<h2>".$title."</h2><br />";
echo "<div style='margin-left:30%;'><embed src='$url' height='250' width='250'></div><br />";
echo "<strong style='font-size:1.5em;'>Description:</strong> <br />".$description;
}
}
else
{
echo "<p>You must be logged in to view this page.</p>";
}

this is my code, but i dont know how to make a checkbox next to each of the picture, and have a button so they can choose which
one to delete