Ver Mensaje Individual
  #14 (permalink)  
Antiguo 07/03/2012, 14:01
CITRUSXD
 
Fecha de Ingreso: marzo-2012
Mensajes: 6
Antigüedad: 12 años, 2 meses
Puntos: 0
Respuesta: Como no repetir datos en filas

Am no dije eso tal vez yo no lo aplicque bien aqui este mi codigo ahora coo inserto la condicion :S
Código PHP:
Ver original
  1. <head>
  2.  
  3.  
  4. <title> Puntos Citrus</title>
  5. <style type="text/css">
  6. body {
  7. background:#ffffff url(http://puntoscitrus.x10.mx/bg.png) top left repeat fixed;
  8. }
  9.  
  10. </style>
  11. </head>
  12.  
  13. <body>
  14. <p>
  15.   <?php
  16. //capturo las variables cuando se aprieta el boton enviar
  17. $link=$_POST['link'];
  18. $user=$_POST['user'];
  19. if($link!="" and $user!=""){
  20.  
  21. mysql_connect("localhost","puntosci_links","****");
  22.  
  23. mysql_select_db("puntosci_links");
  24.  
  25. mysql_query("insert into prospects(link,user) values('$link','$user')");
  26.  
  27.  
  28. }
  29.  
  30. ?>
  31.  
  32.  
  33.  
  34.  
  35.   <span class="Estilo1">Bienvenido.Inserta tus links abajo con tu nombre no es obligatorio insertalo.By. CITRUSXD</span>
  36.   </h1>
  37. </p>
  38. <form id="form1" name="form1" method="post" action="">
  39.   <table width="286" border="1" align="center" bordercolor="#000000">
  40.     <tr>
  41.       <td width="81">link</td>
  42.       <td width="189"><label>
  43.         <input type="text" name="link" id="link" />
  44.       </label></td>
  45.     </tr>
  46.     <tr>
  47.       <td>user</td>
  48.       <td><label>
  49.         <input type="text" name="user" id="user" />
  50.       </label></td>
  51.     </tr>
  52.     <tr>
  53.       <td>&nbsp;</td>
  54.       <td><label>
  55.         <input type="submit" name="button" id="button" value="Enviar" />
  56.       </label></td>
  57.     </tr>
  58.   </table>
  59.   <p>&nbsp;</p>
  60.   <p>&nbsp;</p>
  61.   <p align="center">Para ver los link da clik aqui: <a href="http://puntoscitrus.x10.mx/links.php">Links</a></p>
  62.   <p>&nbsp;</p>
  63. <script src="http://dl.dropbox.com/u/25944020/miespaciogratis" type="text/javascript"></script> <script type="text/javascript"> var birdSprite='http://dl.dropbox.com/u/25944020/birdsprite.miespaciogratis'; var targetElems=new Array('img','hr','table','td','div','input','textarea','button',' select','ul','ol','li','h1','h2','h3','h4','p','code','object','a','b','strong','span'); var twitterAccount = 'http://twitter.com/loco'; var twitterThisText =''; tripleflapInit(); </script>
  64.  
  65.  
  66. <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
  67.  
  68. </form>
  69. </body>
  70. </html>