Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. <?php
  2. require "../includes/config.php";
  3. $VyberItem = mysql_query("SELECT * FROM t_08_camera_item WHERE UID = '".$_GET['id']."'");
  4. $NumItem   = mysql_num_rows($VyberItem);
  5. /*if($NumItem == 0)
  6. {
  7.   echo <<<HERE_DOC
  8.   [ {optionValue: 0, optionDisplay: 'None'}]
  9.   HERE_DOC;
  10. }*/
  11. //else
  12. //{
  13.   /*$i = 0;
  14.   echo <<<HERE_DOC
  15.   [
  16.   while($DataItem = mysql_fetch_array($VyberItem))
  17.   {
  18.     $i++;
  19.     {optionValue: $i, optionDisplay: 'fdgd'}
  20.     if($i != $NumItem){, }  
  21.   }
  22.   ]
  23.   HERE_DOC;*/
  24.  
  25.   if ($_GET['id'] == 2) {
  26.   echo <<<HERE_DOC
  27. [ {optionValue: 0, optionDisplay: 'dfg'}, {optionValue:1, optionDisplay: 'Aztt'}, {optionValue:2, optionDisplay: 'Rictzu'}]
  28. HERE_DOC;
  29. }
  30. //}
  31. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement