Blackwane: If Abfrage 24 Stunden ausführen.

Beitrag lesen

Hi,

Mit was?
Und einfach wahllos alle?

Muss man dir eigentlich jede relevante Information einzeln aus der Nase ziehen.

Mal schauen :D

Hier mal ein Beispiel vom Update:

in der update.php steht folgendes.

include "src/functions.inc.php";  
  
updatePlayerAtt();

Das ist jetzt nur ein Teil Code

Und die funktion hat folgendes:

function updatePlayerAtt(){  
include("conf/config.inc.php");  
$SQLString = "SELECT *  FROM ".$db_prefix."playerAtt";  
$db_result= mysql_db_query($db_name,$SQLString,$db_connect)or die("update: ".mysql_error());  
  
while($row = mysql_fetch_assoc($db_result)){  
  
$fg=conntactGamespy($row['pid']);  
  
$result=gamespytoArray($fg[4]);  
  
$SQLString="UPDATE ".$db_prefix."playerAtt SET  nick='$result[2]',  
  
                                                                globalScore=$result[3],  
  
                                                                globalWins=$result[5],  
  
                                                                globalLoss=$result[6],  
  
                                                                playedGames=$result[7],  
  
                                                                playedTime=$result[10],  
  
etc..  
  
 mysql_db_query($db_name,$SQLString,$db_connect)or die(mysql_error());  
  
}  
  
 return true;  
  
}  

Hilft dir das weiter?

mfg Blackwane