Advertisement
AleeFerreira

cls - names.php

Aug 10th, 2013
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. <?php
  2. header ("Content-type: text/html; charset=UTF-8");
  3. $k = $_GET["l"];
  4.  
  5. if (isset($k)) {
  6.     include ('connect.php');
  7.     $q = mysql_query("select adsid, title, ints, intsnames from ads where adsid = '$k'");
  8.     if ($q) {
  9.         if (mysql_num_rows($q)) {
  10.             $r = mysql_fetch_array($q);
  11.             echo "<center>N° de usuários interessados em <b>".$r["title"]."( ".$r["adsid"]." ):</b> ".$r["ints"].".<br><br>";
  12.             echo "<b>Usuários:</b> ".$r["intsnames"].".</center>";
  13.         }
  14.     }
  15. }
  16.  
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement