von bwcity |
Fehler:
Warning: Supplied argument is not a valid MySQL result resource in /var/www/srv02487/html/community/modules/popup/target/index.php on line 7
Warning: Supplied argument is not a valid MySQL result resource in /var/www/srv02487/html/community/modules/popup/target/index.php on line 8 |
von bwcity |
Ist nur ein Beispiel dann bekommt user 1 credit dazu aber wenn es
virtual_id=2 ist bekommt User 2 einen credit dazu.
index.php?virtual_id=1 |
von Can |
Keine Ahnung, was da nicht stimmt!
Tritt ein Fehler auf? Was passiert (nicht)? |
von Can |
Oder auch so, dann muss id nicht 1,2,3,4,5 usw sein...
1:
2:
3:
4: | $goto = mysql_result(mysql_query("SELECT id FROM `tabellexy` ORDER BY rand() LIMIT 1"),0);
header(Location: $goto);
|
|
von bwcity |
Was stimmt hier nicht?
<?php
include "/var/www/srv02487/html/config/adjust.conf.php";
$res_1 = mysql_query("SELECT `$virtual_id` FROM `$board_users` WHERE virtual_id LIKE `$virtual_id`");
$affi = mysql_affected_rows();
for($x=0;$xi<$affi;$x++)
{
$currc = mysql_result($res_1,$xi, "credits");
$nick = mysql_result($res_1,$xi, "nick");
}
$res = mysql_query("SELECT * FROM `cwsite_community_popup_rights`");
$aff = mysql_affected_rows();
for($x=0;$x<$aff;$x++)
{
$ver = mysql_result($res,$x, "ver");
$url = mysql_result($res,$x, "url");
$klicks = mysql_result($res,$x, "klicks");
$id = mysql_result($res,$x, "id");
}
$res = mysql_query("UPDATE `$baord_users` SET credits = credits + $ver WHERE id = "$virtual_id"");
$aff = mysql_affected_rows();
echo mysql_error()."<br>";
$res = mysql_query("UPDATE `cwsite_community_popup_rights` SET klicks = klicks + 1 WHERE id = "$url"");
$aff = mysql_affected_rows();
echo mysql_error()."<br>";
?>
<?php
include "$url";
?> |
|