PHP interesse |
|
Hallo,
Ik heb een fout maar versta er dus nie aan wat de fout kan zijn.
De tabel namen en querys zijn goed benoemd
<?php
include ('connectie_stats.php');
mysql_connect("$url", "$user", "$wachtwoord");
mysql_select_db("$database");
$select = "SELECT * FROM RedirectURLHosting ORDER BY WijzigDatum DESC LIMIT 5";
$obj = mysql_query($select) or die(mysql_error());
while($row = mysql_fetch_object($obj)) {
$select2 = mysql_query("SELECT * FROM redirect_inhits WHERE site ='".$row->Redirect."' DISTINCT ip");
$hits = mysql_num_rows($select2);
?>
<a href="<? echo $row->Redirect ?>" target="_blank">(<?php echo $hits; ?>)</a><br>
<?
}
?>
<?php include ('connectie_stats.php'); $select = "SELECT * FROM RedirectURLHosting ORDER BY WijzigDatum DESC LIMIT 5"; $select2 = mysql_query("SELECT * FROM redirect_inhits WHERE site ='".$row->Redirect."' DISTINCT ip"); ?> <a href=" <? echo $row->Redirect ?>" target="_blank">( <?php echo $hits; ?>)</a><br> <? } ?>
Citaat: 5 meeste inhits :
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/yotoo/public_html/statistieken.php on line 108
()
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/yotoo/public_html/statistieken.php on line 108
()
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/yotoo/public_html/statistieken.php on line 108
()
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/yotoo/public_html/statistieken.php on line 108
()
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/yotoo/public_html/statistieken.php on line 108
()
Dat is de foutmelding
|