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

Recommended Answers

All 2 Replies

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>";

thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.