Kodu birde benim verdiğim şekilde ekleyip dener misiniz.
if ($oyunisim != "" && $oyunresim != "" && $swflink != "") {
if (!mysql_num_rows("select * from oyunlar where oyunisim='$oyunisim'")) {
$ekle=mysql_query("insert into oyunlar (oyunisim, oyunresim, swflink) values (oyunisim='$oyunisim', oyunresim='$oyunresim', swflink='$swflink')");
if ($ekle)
echo "\"$oyunisim\" adli oyun eklendi.. - $swflink - $oyunresim <br>";
}
}
hiçbir sonuç vermedi aynı hatayla ekleyemedi teşekkür ederimy ardımlarınız için
$ekle=mysql_query("insert into oyunlar set oyunisim='$oyunisim',oyunresim='$oyunresim',swflin k='$swflink'") or die(mysql_error());
Yazarsanız hatayı daha iyi görebilirsiniz.
Alıntı
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/avdepot/public_html/dha.php on line 40
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'k='http://yig.vo.llnwd.net/o25/kaisergames/PageKraloyun/flash/Games/parisgecemod' at line 1
bu hatayı aldım