edit

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
etsted
Forum Newbie
Posts: 15
Joined: Thu Feb 06, 2014 12:33 pm

edit

Post by etsted »

how can i allow users to select they're own file and delete it`?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: edit

Post by requinix »

By building a web page for that.

How about you try explaining yourself?
etsted
Forum Newbie
Posts: 15
Joined: Thu Feb 06, 2014 12:33 pm

Re: edit

Post 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?
etsted
Forum Newbie
Posts: 15
Joined: Thu Feb 06, 2014 12:33 pm

Re: edit

Post 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
Post Reply