Jump to content

Problems with echoing..once more.


xwishmasterx

Recommended Posts

I have been trying for hours to get this to work but, simply cannot get the echo right. Problem is the single ' and double ".

 

<a href='#' onClick="<?php  for ($i = $start; $i < $end; $i++)
        {
                // make sure that PHP doesn't try to show results that don't exist
                if ($i == $total_results) { break; }?>
window.open('<?php echo ".mysql_result($result, $i, 'te_link')."";?>;<?php }?>">link text</a>

 

What I am trying to achive is getting my "$results", which are urls to be added like this:

 

<a href="#" onClick="window.open('http://link1.com'); window.open('http://link2.com'); window.open('http://link3.com');">link text</a>

 

any help on this one? (PS i know it's a mess )

Link to comment
https://forums.phpfreaks.com/topic/263179-problems-with-echoingonce-more/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.