WebWork Magazin - Webseiten erstellen lassen, Online Medien, html

Webhoster, Webhosting Provider und Domain registrieren

Home | Registrieren | Einloggen | Suchen | Aktuelles | GSL-Webservice | Suleitec Webhosting
Reparatur-Forum | Elektro forum | Ersatzteilshop Haushalt und Elektronik


Homepage und Webhosting-Forum

Scripte und Programme für PHP, MYSQL. Diskussionen zur Programmierung im Web. Fragen zu CMS, Blogsoftware, Shops, Newsletter und vielen weiteren Scripten.


Forum » PHP & MySQL » Hilfe bei MySQL » Antworten
Benutzername:
Passwort: Passwort vergessen?
Inhalt der Nachricht: Fett | Kursiv | Unterstrichen | Link | Bild | Smiley | Zitat | Zentriert | Quellcode| Kleiner Text
Optionen: Emailbenachrichtigung bei Antworten
 

Die letzten 5 Postings in diesem Thema » Alle anzeigen
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";
?>

Nach oben