chanfuterboy Posted August 22, 2009 Share Posted August 22, 2009 This is the link to get a list of customers: $strSQL ="SELECT concat('',titel,'') AS Kunden FROM kunden ORDER by sort "; I need a modification of this link to open the page in a new windows of 500x500pixel can someone help me Link to comment https://forums.phpfreaks.com/topic/171436-solved-help/ Share on other sites More sharing options...
MadTechie Posted August 22, 2009 Share Posted August 22, 2009 No that's an SQL statement that gets the titel field from kunden table, your need to find where you echo it with the anchor tag, ie echo "<a href=\"something\">".$row['Kunden']."</a>"; then update it to something like <script language="javascript" type="text/javascript"> <!-- function popitup(url) { newwindow=window.open(url,'name','height=500,width=500'); if (window.focus) {newwindow.focus()} return false; } // --> </script> <?php echo "<a href=\"something\" onclick=\"return popitup('something');\">".$row['Kunden']."</a>"; ?> Link to comment https://forums.phpfreaks.com/topic/171436-solved-help/#findComment-904106 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.