Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Database configuration parameters
- include "../../includes/db_connect2.php";
- include "../../includes/db_connect_mysql.php";
- //Form Data
- $codigo = $_POST['codigo'];
- ?>
- <html>
- <head>
- <title>web-Mall</title>
- <script src="../../includes/ckeditor/ckeditor.js"></script>
- </head>
- <body>
- <center>
- <br><br>
- <h2>Agregar Items</h2>
- <form action="<?php
- echo $_SERVER['PHP_SELF'];
- ?>" method="POST">
- <table>
- <tr><td>itemID:</td><td><input type="text" placeholder = "codigo" name="itemid" /></td></tr>
- </table>
- <p><input type="submit" value="Enviar" name="submit" /></p>
- </form>
- </center>
- </body>
- </html>
- <?php
- //incluir en Base Datos
- include "../../includes/db_connect2.php";
- include "../../includes/db_connect_mysql.php";
- // veo Item ID des mi otra web
- $itemIDview = mssql_query('
- SELECT type, TypeID
- FROM PS_GameDefs.dbo.Items
- WHERE ItemID = ''.$codigo.''
- ');
- $ItemIDvista = mssql_fetch_array($itemIDview);
- $itemIDvw = mysqli_query($conexion,'
- SELECT ItemName, ItemDesc
- FROM Items
- WHERE
- Type = ''.$ItemIDvista[0].''
- and
- TypeID = ''.$ItemIDvista[1].''
- ');
- $ItemID = mysqli_fetch_array($itemIDvw);
- ?>
- <?php
- include "items.php"
- $ItemID[0]
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement