Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Programming Help > PHP Programming Help

PHP Programming Help Post any question relating to PHP Programming here and hopefully someone can help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2005-08-18, 11:04 PM
Junior Member
 
Join Date: Aug 2005
Posts: 3
pipwax
Default

I would like to view this database with the Flyer variable displaying as a link that will open in a new window. Can anyone tel me how?

Here's the code:

<body>
<table width="80%" border="0" align="center">
<tr>
<td>
<div align="center">
<table border="1" cellpadding="5" cellspacing="1">
<tr>
<td></td>
<td align="center">Event Title</td>
<td align="center">Host</td>
<td align="center">Flyer</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_events['id']; ?></td>
<td><?php echo $row_events['title']; ?></td>
<td><?php echo $row_events['host']; ?></td>
<td><?php echo $row_events['flyer']; ?> </td>
</tr>
<?php } while ($row_events = mysql_fetch_assoc($events)); ?>
</table>
</div></td>
</tr>
</table>
</body>
</html>
<?php
mysql_free_result($events);
?>

Thanks for any help

Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2005-08-18, 11:09 PM
Xnuiem's Avatar
Senior Member
 
Join Date: May 2004
Location: DFW, Texas
Posts: 1,104
Xnuiem will become famous soon enough
Send a message via Yahoo to Xnuiem
Default

target=_new in the <a> tag
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
Reply With Quote
  #3 (permalink)  
Old 2005-08-19, 03:51 PM
Junior Member
 
Join Date: Aug 2005
Posts: 3
pipwax
Default

Quote:
Originally posted by Xnuiem@Aug 19 2005, 03:09 AM
target=_new in the <a> tag
Can you give a more detailed example?
Reply With Quote
  #4 (permalink)  
Old 2005-08-19, 06:16 PM
Xnuiem's Avatar
Senior Member
 
Join Date: May 2004
Location: DFW, Texas
Posts: 1,104
Xnuiem will become famous soon enough
Send a message via Yahoo to Xnuiem
Default

i dont think i understand the issue.

Its just HTML, adding a target to the a tag will give you a link in the targeted window.

<?php echo $row_events['flyer']; ?>
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:46 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.