View Single Post
Sponsorlu Bağlantılar
Zoque.Forum
Advertisement
Old 16.03.2008   #1 (permalink)
angle
 
Üyelik Tarihi: 27.07.2007
Yer: ankara
Yaş: 28
Mesaj: 23
Bir kere veren bir daha vermesin ama nasıl?

PHP Code:
<?PHP
    defined 
('_VALID_MOS') or die( 'Direct Access to this location is not allowed.' );



    
$database->setQuery"SELECT imgvotes, imgvotesum FROM #__productbook WHERE id = '$id'" );

    
$result1=$database->query();



    list( 
$imgvotes$imgvotesum )=mysql_fetch_row$result1 );



    
$imgvotes++;

    
$imgvotesum=$imgvotesum $imgvote;



   
$database->setQuery"UPDATE #__productbook SET imgvotes='$imgvotes', imgvotesum='$imgvotesum' WHERE id=$id" );

    
$database->query();

        echo 
"<script> alert('".$PRODUBK->PRODUBK_0031."');

        document.location.href='"
.sefRelToAbs("index.PHP?option=com_productbook&func=detail&Itemid=$Itemid&id=$id")."';</script>";



?>
PRODUBK_0031 -->burda oyunuz başarı ile eklendi diyor.
Ben bu PHP dosyasına ne eklersem bir kere oy veren ikinci kere vermeye çalıştığında oy kullandınız mesajını versin
angle şu an çevrimdışı   Mesajdan alıntı yaparak yeni bir cevap ekleyin