0

Hi,
I think i am missing something obvious. The popup should bring up a page passing an id. Currently nothing happens but i can see the id is being passed into the varaiable when hovering over Link, how can this be chnaged. Below is part of the code

while($row = mysql_fetch_assoc($result)) {
echo
'<tr>
	<td>'.$row['image'].'</td>				<td>'.$row['id'].'</td>
	<td><a href="javascript:window.open(newpage.php?src=' .$row['id']. '' ,'',',resizeable=1,width=400,height=400,top=100,left=100);">Link</a></td>
</tr>';
}
echo "</table>";

thanks

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by Susan.LK
0

Hi,
I think i am missing something obvious. The popup should bring up a page passing an id. Currently nothing happens but i can see the id is being passed into the varaiable when hovering over Link, how can this be chnaged. Below is part of the code

thanks

A) This isn't your first post, use code tags

B) You need to escape your quotes

while($row = mysql_fetch_assoc($result)) {
echo
'<tr>
	<td>'.$row['image'].'</td>				<td>'.$row['id'].'</td>
	<td><a href="javascript:window.open(\'newpage.php?src=' .$row['id']. '\' ,\'\',\'resizeable=1,width=400,height=400,top=100,left=100\');">Link</a></td>
</tr>';
}
echo "</table>";
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.