Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Dynamic links

New Here ,
Jun 12, 2009 Jun 12, 2009

I have a recordset which displays in a dynamic table showing columns for Title, Series, Author and Date. The recordset also contains a field File_location which contains references to PDF files (ie the filename xxxx.pdf). I want to display this recordset in such a way that when the Title is clicked, it opens up the PDF file. Can't work out how to configure the a href.....

<?php do { ?>
            <tr>
              <td><?php echo $row_RSnotes['title']; ?></td>
              <td><?php echo $row_RSnotes['series']; ?></td>
              <td> <?php echo $row_RSnotes['author_firstname']; ?> <?php echo $row_RSnotes['author_lastname']; ?></td>
              <td><?php echo $row_RSnotes['date']; ?></td>
            </tr>
            <?php } while ($row_RSnotes = mysql_fetch_assoc($RSnotes)); ?>

TOPICS
Server side applications
455
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 12, 2009 Jun 12, 2009

Sorry code didn't display for some reason....

<?php do { ?>
            <tr>
              <td><?php echo $row_RSnotes['title']; ?></td>
              <td><?php echo $row_RSnotes['series']; ?></td>
              <td> <?php echo $row_RSnotes['author_firstname']; ?> <?php echo $row_RSnotes['author_lastname']; ?></td>
              <td><?php echo $row_RSnotes['date']; ?></td>
            </tr>
            <?php } while ($row_RSnotes = mysql_fetch_assoc($RSnotes)); ?>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 12, 2009 Jun 12, 2009

I answered an almost identical question about one hour ago. See my answer here.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jun 12, 2009 Jun 12, 2009
LATEST

<?php do { ?>
            <tr>
              <td><a href="<?php echo $row_RSnotes['file_location']; ?>"><?php echo $row_RSnotes['title']; ?></a></td>

              <td><?php echo $row_RSnotes['series']; ?></td>
              <td> <?php echo $row_RSnotes['author_firstname']; ?> <?php echo $row_RSnotes['author_lastname']; ?></td>
              <td><?php echo $row_RSnotes['date']; ?></td>
            </tr>
            <?php } while ($row_RSnotes = mysql_fetch_assoc($RSnotes)); ?>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines