PHP interesse |
|
Zou iemand mij kunnen vertellen hoe ik dit werkende krijg?
$fullmenu="
<li><a href=\"index.php?a=player/modernnews\">Home</a></li>
print <<<ENDHTML
// estimate the number of rows in a table | Select random player to attack
$lekerdezes = mysql_query("select * from `users`");
$max = mysql_num_rows($lekerdezes);
// pick one
$rand = rand(1,$max);
$lekerdezes2 = mysql_query("select * from `users` WHERE id='".$rand."'");
while($rand == $data->id){
$rand = rand(1,$max);
}
ENDHTML;
<li><a href=\"index.php?a=extra/removetime\">Remove wait time</a></li>
";
$fullmenu=" <li><a href=\"index.php?a=player/modernnews\">Home</a></li> print <<<ENDHTML // estimate the number of rows in a table | Select random player to attack $lekerdezes = mysql_query("select * from `users`"); $max = mysql_num_rows($lekerdezes); // pick one $rand = rand(1,$max); $lekerdezes2 = mysql_query("select * from `users` WHERE id='".$rand."'"); while($rand == $data->id){ $rand = rand(1,$max); } ENDHTML; <li><a href=\"index.php?a=extra/removetime\">Remove wait time</a></li> ";
|