lavalair gift shop

Started on the old forum in February 2011 · view the original in the archive · old links redirect here

3 replies · 562 views · started 15 years ago · 1 min read

3 participants
devil_bd Newbie · 6 posts #1
  • do not show sender name who send by gift
  • plz anybody solv this
  • maybe sql prob.plz solv
--
-- Table structure for table `ibwf_shop_Inventory`
--

CREATE TABLE `ibwf_shop_Inventory` (
  `id` int(100) NOT NULL auto_increment,
  `uid` int(100) NOT NULL default '0',
  `itemid` int(100) NOT NULL default '0',
  `time` int(100) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `ibwf_shop_Inventory`
--
else if($action=="prop") 
{
 $whonick = getnick_uid($who);
  addonline(getuid_sid($sid),"Viewing $whonick's Gifts","");

    echo "<card id=\"main\" title=\"Viewing $whonick's Gifts\">";
  echo "<p align=\"center\">";

  $nick = getnick_sid($sid);
  $whonick = getnick_uid($who);
$who = $_GET["who"];
  echo "<i><b><u><small>$whonick's Gifts</small></u></b></i><br/>";

  echo "</p>";
  echo "<p>";

     $sql = "SELECT itemid, uid FROM ibwf_shop_Inventory WHERE uid='".$who."'";

    $items = mysql_query($sql);
    echo mysql_error();
    if(mysql_num_rows($items)>0)
    {
    while ($item = mysql_fetch_array($items))
    {
    $shopitem = mysql_fetch_array(mysql_query("SELECT itemid, itemname, itemshopid FROM ibwf_shop WHERE itemid='".$item[0]."'"));

    echo "$shopitem[1] By <b>do not show :( user name here</b><br/>";
    if($shopitem[2]=='1'){

    }

  }
 }

see this code echo "$shopitem[1] By do not show 🙁 user name here ";

  1. boss
kei_ki7 Senior · 431 posts #2

try this

$didntshow = getnick_uid($items[1]); 
echo "$shopitem[1] By <b>$didntshow</b><br/>";

Did I help you? You can help me too Your donations will help me finance my studies.

devil_bd Newbie · 6 posts #4
  1. not work this see sender name

  2. $dontshow = getnick_uid($items[1]); echo "$shopitem[1] By $dontshow ";

//////////////////////////////////////////  Gift

else if($action=="prop") 
{
 $whonick = getnick_uid($who);
  addonline(getuid_sid($sid),"Viewing $whonick's Gifts","");

    echo "<card id=\"main\" title=\"Viewing $whonick's Gifts\">";
  echo "<p align=\"center\">";

  $nick = getnick_sid($sid);
  $whonick = getnick_uid($who);
$who = $_GET["who"];
  echo "<i><b><u><small>$whonick's Gifts</small></u></b></i><br/>";

  echo "</p>";
  echo "<p>";

     $sql = "SELECT itemid, uid FROM ibwf_shop_Inventory WHERE uid='".$who."'";

    $items = mysql_query($sql);
    echo mysql_error();
    if(mysql_num_rows($items)>0)
    {
    while ($item = mysql_fetch_array($items))
    {
    $shopitem = mysql_fetch_array(mysql_query("SELECT itemid, itemname, itemshopid FROM ibwf_shop WHERE itemid='".$item[0]."'"));
$dontshow = getnick_uid($items[1]);  
echo "$shopitem[1] By <b>$dontshow</b><br/>";
    if($shopitem[2]=='1'){

    }

  }
 }

echo "</p>";
  ////// UNTILL HERE >>
  echo "<p align=\"center\">";
  echo "<br/><a href=\"vprofile.php?action=viewuser&sid=$sid&who=$who\">";
$whonick = getnick_uid($who);
echo "Back to $whonick's Profile</a><br/>";
  echo "<a href=\"djmain.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
  echo "Home</a>";
  echo "</p>";
  echo "</card>";
  }
  1. boss

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close