Tema: Duda en PHP
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/07/2011, 10:18
Vanz
 
Fecha de Ingreso: julio-2011
Ubicación: Roasrio
Mensajes: 4
Antigüedad: 12 años, 10 meses
Puntos: 0
Exclamación Duda en PHP

Hola chicos, como andan ? Soy de Argentina y tengo 17 años :), tengo una duda, mas que una duda un problema.

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
  1. <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml"><head profile="http://gmpg.org/xfn/11">
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="en" lang="en">
  4. <head>
  5. <link rel=stylesheet href='styles/styles.css'>
  6. <title>Lo que te gusta - Crear frases de la manera mas sencilla</title>
  7. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  8. <link rel="image_src" href="http://mienlacedirecto.com.ar/icon_facebook3.png"  />
  9. <meta name="REVISIT-AFTER" content="3 DAYS" />
  10. <meta name="language" content="es,spain" />
  11. <meta name="Description" content="Las mejores frases para compartir" />
  12. <meta name="Keywords" content="facebook, face book, facebook login, paginas de facebook, hazte fan, me gusta" />
  13. <meta name="CLASSIFICATION" content="facebook, face book, facebook login, paginas de facebook, hazte fan, me gusta" />
  14. <meta content="1 days" name="revisit" />
  15. <meta property="og:title" content="Lo que te gusta - Crear frases de la manera mas sencilla"/>
  16. <meta property="og:site_name" content=":]"/>
  17. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
  18. <script type="text/javascript">
  19.  
  20.     $(document).ready(function(){
  21.         $('a.symbol').click(function() {
  22.         if ($('#textC').val() == 'Escribe tu frase aqui.'){
  23.             $('#textC').val('');
  24.         }
  25.         $('#textC').val($('#textC').val() + $(this).text());                       
  26.  
  27. $("#formid").submit( function (){  
  28.         var re = /\s/g; //Match any white space including space, tab, form-feed, etc.
  29.         var str = document.form.pagename.value.replace(re, "");
  30.         if ( str.length < 2 || str == 'Escribetufraseaqui.')
  31.         {
  32.             return false;
  33.         }
  34.         return true;
  35.         });        
  36.         });            
  37.     $('div.viewMore').hover(function() {
  38.         $(this).addClass('viewMoreHover');
  39.       }, function() {
  40.         $(this).removeClass('viewMoreHover');
  41.       });          
  42. });
  43. function LimitInput(jsField, CounterField, MaxNum) {
  44.     if (jsField.value.length > MaxNum) {
  45.         jsField.value = jsField.value.substring(0, MaxNum);
  46.     } else {
  47.         CounterField.value = MaxNum - jsField.value.length;
  48.     }
  49. }
  50.  
  51.  
  52. function nameempty()
  53. {      
  54.         var re = /\s/g; //Match any white space including space, tab, form-feed, etc.
  55.         var str = document.form.pagename.value.replace(re, "");
  56.         if ( str.length < 2 || str == 'Escribetufraseaqui.' || str.length > 500)
  57.         {
  58.             return false;
  59.         }
  60.         return true;
  61. }
  62. </script>
  63. <script type="text/javascript">
  64.  
  65.   var _gaq = _gaq || [];
  66.   _gaq.push(['_setAccount', 'UA-8909086-12']);
  67.   _gaq.push(['_trackPageview']);
  68.  
  69.   (function() {
  70.     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  71.     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  72.     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  73.   })();
  74.  
  75. </script></head>
  76. <body>
  77. <div class="topbarcontainer">
  78. <div class="topbar">
  79. <div class="logo" id="logo"><iframe src="http://www.facebook.com/plugins/likebox.php?id=214748388568210&amp;width=330&amp;connections=0&amp;stream=false&amp;header=false&amp;height=55" scrolling="No" frameborder="0" style="border:none; background-color:#ffffff; overflow:hidden; width:330px; height:55px;" allowtransparency="true"></iframe><br /> <br />
  80. <div class="menu"><a href="index.php">Inicio</a> | <a href="pages.php">Ultimas</a> | <a href="tops.php">Destacadas</a>
  81. </div></div>
  82. <div id="boxCreatePages">
  83. <form action="newPage.php" method="post"  name="form" id="formid" enctype="multipart/form-data" onSubmit="return nameempty();">
  84. <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);"  />
  85. <input id="buttonNew" value="Crear frase &gt;" type="submit" class="blue button">
  86. <div style="margin-top:5px;margin-bottom:5px;">
  87. <input type="hidden" name="hash" value="bc7443909b8a2ccd14b087f44835ad8b">
  88. <a href="#" class="symbol">&#9829; </a><a href="#" class="symbol">♫</a><a href="#" class="symbol">☺</a>
  89. <a href="#" class="symbol">&#13025;</a> <a href="#" class="symbol">★/a><a href="#" class="symbol">ε</a>
  90. <a href="#" class="symbol">&#1111;</a><a href="#" class="symbol">з</a><a href="#" class="symbol">♪</a><a href="#" class="symbol">╰</a>
  91. <a href="#" class="symbol">&#9734;</a><a href="#" class="symbol">╮</a><a href="#" class="symbol">❥</a><a href="#" class="symbol">☮</a>
  92. <a href="#" class="symbol">&#9775;</a><a href="#" class="symbol">✓</a>
  93. <a href="#" class="symbol">&#9765;</a><a href="#" class="symbol"> ☑</a><a href="#" class="symbol">☏</a><a href="#" class="symbol">☎</a>
  94. <a href="#" class="symbol">&#9730;</a><a href="#" class="symbol">☀</a> <a href="#" class="symbol">✡</a><a href="#" class="symbol">♬</a>
  95. <a href="#" class="symbol">&#9789;</a> <a href="#" class="symbol">&dagger; </a>
  96. <a href="#" class="symbol">&#9785;</a><a href="#" class="symbol">❤</a><a href="#" class="symbol">☝&empty; </a><a href="#" class="symbol">☄</a>
  97. <a href="#" class="symbol">&#10014;</a> <a href="#" class="symbol">&euro;</a><a href="#" class="symbol">♂</a><a href="#" class="symbol">♀ </a>
  98. </form>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. <div class="container">
  104. <div class="sidebar">
  105. <script type="text/javascript"><!--
  106. google_ad_client = "ca-pub-9954862002138164";
  107. /* megusta3bloque */
  108. google_ad_slot = "7461999980";
  109. google_ad_width = 300;
  110. google_ad_height = 250;
  111. //-->
  112. </script>
  113. <script type="text/javascript"
  114. src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  115. </script><table border="0" cellpadding="5" cellspacing="0" width="100%" class="datatable">
  116.                 <tr>
  117.                 <th align="left">Recomendaciones</th><tr>
  118.                 <td> </td></tr></table></div>
  119. <div class="body">
  120. <center>
  121. <script type="text/javascript"><!--
  122. google_ad_client = "ca-pub-9954862002138164";
  123. /* megusta3centro */
  124. google_ad_slot = "5448023393";
  125. google_ad_width = 728;
  126. google_ad_height = 90;
  127. //-->
  128. </script>
  129. <script type="text/javascript"
  130. src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  131. </script></center>
  132. *<table border="0" cellpadding="5" cellspacing="0" width="100%" class="datatable">
  133.     <tr>
  134.         <th colspan="2" align="left">Ultimas creadas
  135. <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&amp;layout=button_count&amp;show_faces=false&amp;width=125&amp;action=like&amp;colorscheme=light&amp;height=20" style="border:none; overflow:hidden; width:125px; height:20px;vertical-align:bottom;"> </iframe></span></th>
  136.     </tr>
  137. <tr></tr><tr><td width="80"><iframe src="http://www.facebook.com/widgets/like.php?&amp;layout=button_count&amp;href=http://www.facebook.com/pages/Nosgustanfrases/214748388568210"
  138.         scrolling="No" frameborder="0" style="border:none; width:75px; height:20px; margin-top: 0px; margin-right: 0px;"></iframe></td>
  139.         </tr><tr></tr></table>
  140. <div class="viewMore" onClick="location.href='pages.php'">Ver más</div>
  141.  <center>
  142. <script type="text/javascript"><!--
  143. google_ad_client = "ca-pub-9954862002138164";
  144. /* megusta3centro */
  145. google_ad_slot = "5448023393";
  146. google_ad_width = 728;
  147. google_ad_height = 90;
  148. //-->
  149. </script>
  150. <script type="text/javascript"
  151. src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  152. </script></center>
  153. *<table border="0" cellpadding="5" cellspacing="0" width="100%" class="datatable">
  154.     <tr>
  155.         <th colspan="2" align="left">Frases destacadas
  156. <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&amp;layout=button_count&amp;show_faces=false&amp;width=125&amp;action=like&amp;colorscheme=light&amp;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>
  157.     </tr>
  158. <tr><td width="80"><iframe src="http://www.facebook.com/widgets/like.php?&amp;layout=button_count&amp;href=http://www.facebook.com/pages/Nosgustanfrases/214748388568210"
  159.             scrolling="No" frameborder="0" style="border:none; width:75px; height:20px; margin-top: 0px; margin-right: 5px;"></iframe></td>
  160.             </tr></table>
  161. <div class="viewMore" onClick="location.href='tops.php'">Ver más</div>
  162. <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>
  163. </div>
  164.  <div class="wrapper" style="clear:both;height:50px;"></div>
  165. <div class="footer" id="footer">
  166.  <b>Lo que te gusta</b>.
  167.  <span style="font-size:9px;">

Como lo conecto a la DB? Usando el Require ?

De antemano, Gracias