Advertisement
Guest User

Untitled

a guest
Aug 5th, 2015
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2. $q = var_dump($_GET['q']);
  3. $Marketplace = $_POST['txtHint'];
  4. $con = mysqli_connect('localhost','Chuk','pass','Login');
  5. if (!$con) {
  6. die('Could not connect: ' . mysqli_error($con));
  7. }
  8. if(isset($_GET["q"]))
  9. {
  10. mysqli_select_db($con,"ajax_demo");
  11. $sql="SELECT Website FROM Details WHERE ID = '.$q.' AND Marketplace = '.$Marketplace.'";
  12. $result = mysqli_query($con,$sql);
  13. echo "<iframe src=$url'" . $act['Website'] . "'></iframe>";
  14. $url= $row['Website'];
  15. }
  16. mysqli_close($con);
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement