Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. <?php
  2. // Database configuration parameters
  3. include "../../includes/db_connect2.php";
  4. include "../../includes/db_connect_mysql.php";
  5. //Form Data
  6. $codigo = $_POST['codigo'];
  7. ?>
  8. <html>
  9. <head>
  10. <title>web-Mall</title>
  11. <script src="../../includes/ckeditor/ckeditor.js"></script>
  12. </head>
  13. <body>
  14. <center>
  15. <br><br>
  16. <h2>Agregar Items</h2>
  17. <form action="<?php
  18. echo $_SERVER['PHP_SELF'];
  19. ?>" method="POST">
  20. <table>
  21. <tr><td>itemID:</td><td><input type="text" placeholder = "codigo" name="itemid" /></td></tr>
  22. </table>
  23. <p><input type="submit" value="Enviar" name="submit" /></p>
  24. </form>
  25. </center>
  26. </body>
  27. </html>
  28.  
  29. <?php
  30. //incluir en Base Datos
  31. include "../../includes/db_connect2.php";
  32. include "../../includes/db_connect_mysql.php";
  33. // veo Item ID des mi otra web
  34. $itemIDview = mssql_query('
  35. SELECT type, TypeID
  36. FROM PS_GameDefs.dbo.Items
  37. WHERE ItemID = ''.$codigo.''
  38. ');
  39. $ItemIDvista = mssql_fetch_array($itemIDview);
  40.  
  41. $itemIDvw = mysqli_query($conexion,'
  42. SELECT ItemName, ItemDesc
  43. FROM Items
  44. WHERE
  45. Type = ''.$ItemIDvista[0].''
  46. and
  47. TypeID = ''.$ItemIDvista[1].''
  48. ');
  49. $ItemID = mysqli_fetch_array($itemIDvw);
  50. ?>
  51.  
  52. <?php
  53. include "items.php"
  54. $ItemID[0]
  55. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement