Jump to content

new window PHP + Javascript?


supermerc

Recommended Posts

Hey, I have a script where when you click on a link it opens from 20-30 iframes in the page to a x,y coordinate where is located a recaptcha so its basicly 20-30 recaptcha's beside each other.

 

The only problem is that it can take a while to load 20-30 pages and you cant really start entering them till they are all loaded so you lose a lot of time.

 

What I thought of doing is make them open in popup and make there only like 5 per page.

 

My code right now is:

 

<?php
include 'config.php';
$order = $_GET['order'];
$raid = $_GET['raid'];
$all_members = mysql_query("SELECT * FROM accounts where rank = '$order' ORDER BY level DESC") or die(mysql_error());

       

      if(mysql_num_rows($all_members) > 0)

      { 

      while($row = mysql_fetch_assoc($all_members))

      {
	  
	$q = mysql_query("SELECT * FROM accounts") or die(mysql_error());

	if(mysql_num_rows($q) > 0)
	{
echo "<iframe src=\"scroll.php?id=$row[owid]&raid=$raid\" width=\"325\" height=\"200\" scrolling=\"no\"></iframe>";
}
	}

      }
echo '</table>';
      

?>

 

So it loops all the accounts in database to load in iframe, but what i want is to load first 5 in popup, then 5 other in another popup etc.

 

Can anyone help?

Link to comment
https://forums.phpfreaks.com/topic/165921-new-window-php-javascript/
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.