Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/01/2012, 10:52
Avatar de gabrielmatianich
gabrielmatianich
 
Fecha de Ingreso: diciembre-2011
Ubicación: San Cristobal
Mensajes: 21
Antigüedad: 12 años, 3 meses
Puntos: 0
Respuesta: Facebook Script Form Error

Codigo Fuente new.php
Código PHP:
<? include ("config.php"); 
$id=$_GET["id"];
$x=mysql_query("SELECT * FROM fblike WHERE id=$id");
    while (
$y=mysql_fetch_assoc($x)){
    
$like=$y['like'];
    
$new_hits=$y['hits']+1;
    
$hits=$y['hits'];
    }
mysql_query("UPDATE fblike SET hits='$new_hits' WHERE id='$id'");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta property="og:title" content="Newest Likes | FBLikees!"/>
<title>DameLike.com |</title>
<link rel="stylesheet" href="styles.css" type="text/css">
<style type="text/css">
<!--
a:link {
    color: 3d5888;
    text-decoration: none;
}
a:visited {
    text-decoration: none;
    color: 3d5888;
}
a:hover {
    text-decoration: none;
    color: 3d5888;
}
a:active {
    text-decoration: none;
    color: 3d5888;
}
-->
</style></head>
    <body>
        <div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: 'your app id', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement('script'); e.async = true;
    e.src = document.location.protocol +
      '//connect.facebook.net/en_US/all.js';
    document.getElementById('fb-root').appendChild(e);
  }());
</script><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
<div id="header"> <a href="<?=$url_site?>" id="branding"><span>
  <?=$site_name?>
  </span></a>
  <p id="total_pages" class="rounded"><span id="count">
    <? 
                $x
=mysql_query("SELECT * FROM fblike ORDER BY id DESC LIMIT 0,1");
                
$nr=0;
                while (
$y=mysql_fetch_assoc($x)) {
                
$id=$y['id'];
            
$like=$y['like'];
                
?>
    <?=$id?>
    <? echo substr(0,44);?>
    <? ?>
  </span> Frases Creadas</p>
</div>
<p>&nbsp;</p>
<p align="center"><script type="text/javascript"><!--
google_ad_client = "ca-pub-1570674365886019";
/* DameLike Top 728x90 */
google_ad_slot = "7858083492";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
</p>
<div id="page_details" class="rounded">
  <h1>Compartelo con tus Amigos!</h1><br /><br />
                <center><iframe src="http://www.facebook.com/widgets/like.php?href=<?=$url_site?>&amp;layout=standard&amp;show_faces=true&amp;width=400&amp;action=like&amp;font&amp;colorscheme=light&amp;height=20" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:24px;" allowTransparency="true"></iframe><br /></center>
    </div>

        
<div id="popular_pages" class="rounded box_420">
            <h2>Frases Nuevas</h2>
            <ul>
                                     <? 
        $x
=mysql_query("SELECT * FROM fblike ORDER BY id DESC LIMIT 0,20");
        
$nr=0;
        while (
$y=mysql_fetch_assoc($x)) {
            
$id=$y['id'];
            
$like=$y['like'];
            
?>
            
           <li><a href='like.php?id=<?=$id?>'><iframe src="http://www.facebook.com/plugins/like.php?href=http://fblikees.tk/like.php?id=<?=$id?>&amp;layout=button_count&amp;show_faces=false&amp;width=120&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:120px; height:21px;" allowTransparency="true"></iframe><? echo substr($like0,44);?></a><br></li>
             <?
        
}
        
?>

                                
            </ul>
    </div>

<div id="new_pages" class="rounded box_420">
            <h2>Frases Nuevas</h2>
            <ul>
                                     <? 
        $x
=mysql_query("SELECT * FROM fblike ORDER BY id DESC LIMIT 20, 40");
        
$nr=0;
        while (
$y=mysql_fetch_assoc($x)) {
            
$id=$y['id'];
            
$like=$y['like'];
            
?>
            
           <li><a href='like.php?id=<?=$id?>'><iframe src="http://www.facebook.com/plugins/like.php?href=http://fblikees.tk/like.php?id=<?=$id?>&amp;layout=button_count&amp;show_faces=false&amp;width=120&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:120px; height:21px;" allowTransparency="true"></iframe><? echo substr($like0,44);?></a><br></li>
             <?
        
}
        
?>

                                
            </ul>
        </div>
        
<p align="center"><script type="text/javascript"><!--
google_ad_client = "ca-pub-1570674365886019";
/* DameLike Top 728x90 */
google_ad_slot = "7858083492";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>&nbsp;</p>
<table style="width: 100%; height: 4px; border-collapse: collapse" border="0" bordercolor="#000000" cellpadding="3" cellspacing="0">
  <tbody>
    <tr valign="top">
      <td><p>&nbsp;</p></td>
      <td align="center" background="images/fb-footer.png" height="54" width="837"><p align="left"><br />
        &copy; 2012 DameLike.com.ar - Crea tu Frase y compartelo! <img src="images/pages.png" alt="" width="20" height="20" /></p></td>
      <td><p>&nbsp;</p></td>
    </tr>
  </tbody>
</table>
<p>&nbsp;</p>

</center></p></body></html>