Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8764933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:09:26+00:00 2026-06-13T16:09:26+00:00

I cannot seem to figure this out. I’m trying to get row[video] value from

  • 0

I cannot seem to figure this out. I’m trying to get row value from results, and if there is a entry in the DB for video and it’s not null, display a link that says Edit Video Link with a href= of edit_media.php?video=edit (which is this page). If the user clicks this link, the page reloads with the URL including video=edit and that triggers the variable videoEdit to be TRUE which should display a form input box that displays the current value in the database.

However, It doesn’t seem to be working, for some reason I’m seeing the form input box even before I click Edit Video link, (url does not have video=edit). and when I click “Modify Video Link” and the url does have the video=edit, I see a textbox with the words Video in it. I’m not sure why. I have the correct MYSQL Query before this code, but I didn’t include it here. How can I get this working?

     // if the user clicked edit video link
if ($_GET['video'] = EDIT) {
$videoEdit = TRUE
}

while ($row = mysql_fetch_array($result, mysql_assoc)) {
$video = $row['video'];
}

if ($videoEdit = TRUE) {
echo '<form action="edit_media.php" method="post">
<p>Video Link: <input type="text" name="serial" size="25" maxlength="100" value=';
       if (isset($video))
            echo $video;
            ' /></p><p><input type="submit" name="submit" value="Submit Video" /></p>               <input type="hidden" name="submitted" value="TRUE" />
        </form>';
}

And it goes on to say:

if ($video != "") {
echo '<iframe width="420" height="315" src=' . $video . ' frameborder="0" allowfullscreen></iframe> | <a href=edit_media.php?video=EDIT>Modify Video Link</a>';
} else {
echo "Video Not Present | <a href=edit_media.php?video=EDIT>Add a Video</a>";
}

Can you help me in making this script work>?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:09:28+00:00Added an answer on June 13, 2026 at 4:09 pm

    First you’re need a comparisons, not assignments:

    if ($_GET['video'] ==  'EDIT') {
         $videoEdit = TRUE;
     }
    

    and

    if ($videoEdit == TRUE) {
    

    Also the printing of your video needs to be cleaned up:

    echo '<form action="edit_media.php" method="post">
          <p>Video Link: <input type="text" name="serial" size="25" maxlength="100" value=';
    if (isset($video)){
            echo $video;
    }
    echo ' /></p><p><input type="submit" name="submit" value="Submit Video"/></p>'.
         '<input type="hidden" name="submitted" value="TRUE" /> </form>';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I cannot figure this one out, but I cannot seem to get android to
Trying to parse this json and cannot seem to figure it out. { description
I cannot figure out this positioning problem in Firefox. It doesn't seem to follow
I cannot seem to figure out where I went wrong with this. favorite share
I just cannot seem to figure this out. I need another set of eyes.
After several hours of tinkering I cannot seem to figure this out. I have
I just cannot seem to figure this one out: how do I respond to
I cannot seem to figure out what is making this script go wrong... You
I cannot seem to figure out why my event observer works from my machine
Google though I tried, I cannot seem to figure out how to get rid

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.