dennislassiter
Erfahrenes Mitglied
Hab mein Problem jetzt in einem eigenen Thema...
Jetzt kommt:
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /www/htdocs/v026578/test/best2.php on line 13
PHP:
<?
include("dbconnect.php");
$timestamp = time();
$datum = date("dmy",$timestamp);
$sql= mysql_query("CREATE TABLE IF NOT EXISTS $datum");
$res = mysql_query("SELECT * FROM $datum, anid WHERE userid = $id AND anid=$sponsor");
if(!$res) {
while($row = mysql_fetch_object($res))
{
$eintrag = "INSERT INTO $datum (userid, pluspoints, mepluscent, anid) VALUES ('$id', '$row->points', '$row->cent', '$sponsor')";
$eintragen = mysql_query($eintrag);
}
}
?>
Jetzt kommt:
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /www/htdocs/v026578/test/best2.php on line 13