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 3276566
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:16:20+00:00 2026-05-17T19:16:20+00:00

im trying to pass the information of a specific data to be edited in

  • 0

im trying to pass the information of a specific data to be edited in another form which is edit_doc.php. However, when i click “Edit” it doesnt seem to work. Only edit_doc.php opens but the information the does not appear. Is ther any mistake in the codes? Please help.

[php]

  echo "<table border='1'>
    <th>File Reference No.</th>
    <th>File Name</th>
    <th>Owner</th>
    <th>iShare URL</th>
    <th>Edit</th>
    <th>Borrow</th>
    <th>Delete</th>
    </tr>";
    while ($rows = mysql_fetch_assoc($run))  
    {
      echo "<tr>";
      echo "<td>". $rows['file_ref']  ."</td>";
      echo "<td>". $rows['file_name'] ."</td>";
      echo "<td>". $rows['owner'] ."</td>";
      echo "<td>". $rows['url']    ."</td>";
      echo "<td><a href=edit_doc.php?id=<?php $['id']; ?>" . "Edit" . "</a></td>";

      echo "</tr>";

    }
   echo "</table>"; 

[/php]

Thank you.

  • 1 1 Answer
  • 1 View
  • 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-05-17T19:16:20+00:00Added an answer on May 17, 2026 at 7:16 pm

    The code in the link is wrong, you are putting a <?php in a string, which will not be parsed by php. furthermore, the line must look something like this:

    echo "<td><a href=edit_doc.php?id=" . $rows['id'] . ">Edit</a></td>";
    

    consider using an editor with syntax highlighting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to pass on additional information to fields of a Django form to
I am trying to use the following code to pass information to another site
I'm trying to pass form information via GET - this is important so that
I am trying to pass information to parent form from modal form in vb.net
I'm trying to add items to listbox from another class,the information pass to the
Trying to pass in a user supplied string which has a path to the
Trying to pass a string argument to a function, which will then be used
I am trying to pass the fullcalendar events to my controller via Json, however
I'm trying to pass information between domains using a combination of jQuery and WCF.
I am trying to pass some information between a subview and a parentview on

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.