Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Link target issue Please help!!
Old 01-07-2009, 10:36 AM Link target issue Please help!! {SOLVED}
Junior Talker

Posts: 2
Name: chris
Trades: 0
How do I get a link to open in the window parent to the IFRAME?



The area of code I am concerned with is

PHP Code:
// PHP Loop for each pic
while($row=mysql_fetch_assoc($getpics)){
print
"<td align='center'><a href='gallery/viewpic.php?pic_id=" .$row['pic_id'] . "' title='" .$row

['pic_title'] ."'><br /><img src='gallery/pic.php?mode=small&pic_id=".$row['pic_id']."' alt='" .$row

['pic_title'] ."' title='" .$row['pic_title'] ."' /></a><br /><div style='width:150px;'><b>" .$row['pic_title']

.
"</b><br />Posted By: ".$row['pic_username']."</div></td>";
}

Specifically
PHP Code:
<a href='gallery/viewpic.php?pic_id=" .$row['pic_id'] . "' title='" .$row

['
pic_title'] ."'>

and how to make it open in the _parent window
I'm not sure how to code target in PHP

The site is pareonline.com and the code I am trying to make work is in the Random gallery Images box.
It is a IFRAME nested in the block.

Last edited by cdelicath; 01-07-2009 at 11:10 AM.. Reason: solved
cdelicath is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-07-2009, 10:38 AM Re: Link target issue Please help!!
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
<a href='gallery/viewpic.php?pic_id=" .$row['pic_id'] . "' title='" .$row

['pic_title'] ."' target='_parent'>
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Old 01-07-2009, 11:09 AM Re: Link target issue Please help!!
Junior Talker

Posts: 2
Name: chris
Trades: 0
worked like a charm!

Thank you very much.
cdelicath is offline
Reply With Quote
View Public Profile
 
Old 01-08-2009, 03:17 AM Re: Link target issue Please help!!
Banned

Posts: 5
Trades: 0
Congratulations!
euart is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Link target issue Please help!!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14897 seconds with 12 queries