Esto queriendo hacer una pagina de frases facebook pero resulta que tengo el index, pero nose como hacer para que las frases apunten a las lineas donde tienen que aparecer, ya que hay frases creadas pero no aparecen !
Código PHP:
Ver original
<!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" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="en" lang="en"> <head> <title>Lo que te gusta - Crear frases de la manera mas sencilla</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="REVISIT-AFTER" content="3 DAYS" /> <meta name="language" content="es,spain" /> <meta name="Description" content="Las mejores frases para compartir" /> <meta name="Keywords" content="facebook, face book, facebook login, paginas de facebook, hazte fan, me gusta" /> <meta name="CLASSIFICATION" content="facebook, face book, facebook login, paginas de facebook, hazte fan, me gusta" /> <meta content="1 days" name="revisit" /> <meta property="og:title" content="Lo que te gusta - Crear frases de la manera mas sencilla"/> <meta property="og:site_name" content=":]"/> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('a.symbol').click(function() { if ($('#textC').val() == 'Escribe tu frase aqui.'){ $('#textC').val(''); } $('#textC').val($('#textC').val() + $(this).text()); $("#formid").submit( function (){ var re = /\s/g; //Match any white space including space, tab, form-feed, etc. var str = document.form.pagename.value.replace(re, ""); if ( str.length < 2 || str == 'Escribetufraseaqui.') { return false; } return true; }); }); $('div.viewMore').hover(function() { $(this).addClass('viewMoreHover'); }, function() { $(this).removeClass('viewMoreHover'); }); }); function LimitInput(jsField, CounterField, MaxNum) { if (jsField.value.length > MaxNum) { jsField.value = jsField.value.substring(0, MaxNum); } else { CounterField.value = MaxNum - jsField.value.length; } } function nameempty() { var re = /\s/g; //Match any white space including space, tab, form-feed, etc. var str = document.form.pagename.value.replace(re, ""); if ( str.length < 2 || str == 'Escribetufraseaqui.' || str.length > 500) { return false; } return true; } </script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-8909086-12']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script></head> <body> <div class="topbarcontainer"> <div class="topbar"> <div class="logo" id="logo"><iframe src="http://www.facebook.com/plugins/likebox.php?id=214748388568210&width=330&connections=0&stream=false&header=false&height=55" scrolling="No" frameborder="0" style="border:none; background-color:#ffffff; overflow:hidden; width:330px; height:55px;" allowtransparency="true"></iframe><br /> <br /> <div class="menu"><a href="index.php">Inicio</a> | <a href="pages.php">Ultimas</a> | <a href="tops.php">Destacadas</a> </div></div> <div id="boxCreatePages"> <form action="newPage.php" method="post" name="form" id="formid" enctype="multipart/form-data" onSubmit="return nameempty();"> <input type="text" id="textC" name="pagename" autocomplete="" class="text" onfocus='if(this.value=="Escribe tu frase aqui.")this.value=""' onblur='if(this.value=="")this.value="Escribe tu frase aqui."' onMouseOver="this.focus()" maxlength="5000" onKeyUp="LimitInput(this.form.textC,this.form.textcount,450);" /> <input id="buttonNew" value="Crear frase >" type="submit" class="blue button"> <div style="margin-top:5px;margin-bottom:5px;"> <input type="hidden" name="hash" value="bc7443909b8a2ccd14b087f44835ad8b"> <a href="#" class="symbol">♥ </a><a href="#" class="symbol">♫</a><a href="#" class="symbol">☺</a> <a href="#" class="symbol">㋡</a> <a href="#" class="symbol">★/a><a href="#" class="symbol">ε</a> <a href="#" class="symbol">ї</a><a href="#" class="symbol">з</a><a href="#" class="symbol">♪</a><a href="#" class="symbol">╰</a> <a href="#" class="symbol">☆</a><a href="#" class="symbol">╮</a><a href="#" class="symbol">❥</a><a href="#" class="symbol">☮</a> <a href="#" class="symbol">☯</a><a href="#" class="symbol">✓</a> <a href="#" class="symbol">☥</a><a href="#" class="symbol"> ☑</a><a href="#" class="symbol">☏</a><a href="#" class="symbol">☎</a> <a href="#" class="symbol">☂</a><a href="#" class="symbol">☀</a> <a href="#" class="symbol">✡</a><a href="#" class="symbol">♬</a> <a href="#" class="symbol">☽</a> <a href="#" class="symbol">† </a> <a href="#" class="symbol">☹</a><a href="#" class="symbol">❤</a><a href="#" class="symbol">☝∅ </a><a href="#" class="symbol">☄</a> <a href="#" class="symbol">✞</a> <a href="#" class="symbol">€</a><a href="#" class="symbol">♂</a><a href="#" class="symbol">♀ </a> </form> </div> </div> </div> </div> <div class="container"> <div class="sidebar"> <script type="text/javascript"><!-- google_ad_client = "ca-pub-9954862002138164"; /* megusta3bloque */ google_ad_slot = "7461999980"; google_ad_width = 300; google_ad_height = 250; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script><table border="0" cellpadding="5" cellspacing="0" width="100%" class="datatable"> <tr> <th align="left">Recomendaciones</th><tr> <td> </td></tr></table></div> <div class="body"> <center> <script type="text/javascript"><!-- google_ad_client = "ca-pub-9954862002138164"; /* megusta3centro */ google_ad_slot = "5448023393"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></center> *<table border="0" cellpadding="5" cellspacing="0" width="100%" class="datatable"> <tr> <th colspan="2" align="left">Ultimas creadas <span style="float:right;"><iframe allowTransparency="true" frameborder="0" scrolling="no" src="http://www.facebook.com/plugins/like.php?href=http://www.facebook.com/pages/Nosgustanfrases/214748388568210&layout=button_count&show_faces=false&width=125&action=like&colorscheme=light&height=20" style="border:none; overflow:hidden; width:125px; height:20px;vertical-align:bottom;"> </iframe></span></th> </tr> <tr></tr><tr><td width="80"><iframe src="http://www.facebook.com/widgets/like.php?&layout=button_count&href=http://www.facebook.com/pages/Nosgustanfrases/214748388568210" scrolling="No" frameborder="0" style="border:none; width:75px; height:20px; margin-top: 0px; margin-right: 0px;"></iframe></td> </tr><tr></tr></table> <div class="viewMore" onClick="location.href='pages.php'">Ver más</div> <center> <script type="text/javascript"><!-- google_ad_client = "ca-pub-9954862002138164"; /* megusta3centro */ google_ad_slot = "5448023393"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></center> *<table border="0" cellpadding="5" cellspacing="0" width="100%" class="datatable"> <tr> <th colspan="2" align="left">Frases destacadas <span style="float:right;"><iframe allowTransparency="true" frameborder="0" scrolling="no" src="http://www.facebook.com/plugins/like.php?href=http://www.facebook.com/pages/Nosgustanfrases/214748388568210&layout=button_count&show_faces=false&width=125&action=like&colorscheme=light&height=20" style="border:none; overflow:hidden; width:125px; height:20px;vertical-align:bottom;"> </iframe> <a href="http://twitter.com/frasesmegustan" class="twitter-follow-button" data-show-count="false" data-lang="es">Follow @frasesmegustan</a><script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script></span></th> </tr> <tr><td width="80"><iframe src="http://www.facebook.com/widgets/like.php?&layout=button_count&href=http://www.facebook.com/pages/Nosgustanfrases/214748388568210" scrolling="No" frameborder="0" style="border:none; width:75px; height:20px; margin-top: 0px; margin-right: 5px;"></iframe></td> </tr></table> <div class="viewMore" onClick="location.href='tops.php'">Ver más</div> <object id="99chats28977" type="application/x-shockwave-flash" data="http://www.99chats.com/chat.swf?r=160261&l=es" width="100%" height="280"><param name="movie" value="http://www.99chats.com/chat.swf?r=160261&l=es" /><param name="bgcolor" value="#ffffff" /><embed src="http://www.99chats.com/chat.swf?r=160261&l=es" type="application/x-shockwave-flash" width="100%" height="280" bgcolor="#ffffff"></embed></object> </div> </div> <div class="wrapper" style="clear:both;height:50px;"></div> <div class="footer" id="footer"> <b>Lo que te gusta</b>. <span style="font-size:9px;">
Como lo conecto a la DB? Usando el Require ?
De antemano, Gracias