edit
Moderator: General Moderators
Re: edit
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
{
$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