pic coding

Started on the old forum in April 2010 · view the original in the archive · old links redirect here

29 replies · 1,220 views · started 16 years ago · 1 min read

7 participants
srecnica Developer · 174 posts #21

cheeky-girl wrote: am so confused now :(:(🙁 will you be having a look in my server??????????? coz i dont really no my way around lava much prefer wap v2 x

am so I do not understand you ???!! How do you think I look at your server?? I told you to write your code here for adding pictures to the site that I could help you about this code that you need.. 🙂 Please post here your code to add to the gallery

cheeky-girl Junior · 17 posts #23

id int(100) No None auto_increment

uid int(100) No None

sex varchar(255) latin1_swedish_ci No None

itemurl varchar(255) latin1_swedish_ci No None

file varchar(250) latin1_swedish_ci No None

is that what ur on about sorry if not im a wee bit thick

srecnica Developer · 174 posts #24

this is my table ibwf_gallery

CREATE TABLE IF NOT EXISTS `ibwf_gallery` (
  `id` int(100) NOT NULL AUTO_INCREMENT,
  `uid` int(100) NOT NULL,
  `sex` varchar(255) NOT NULL,
  `itemurl` varchar(255) NOT NULL,
  `file` varchar(250) NOT NULL,
  `last` int(100) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`itemurl`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;

this is my cod to add pictures to the gallery

else if($action=="addgal")
{
    
  $itemurl = $_POST["itemurl"];
echo "<card id=\"main\" title=\"Happy Chat\">";
$tm = time()-180;

$crdate = $tm;
   $uid = getuid_sid($sid);
  $nopl = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$uid."'"));
  if($nopl[0]=='M')
  {
    $usex = "M";
  }else if($nopl[0]=='F'){
    $usex = "F";
  }else{
    $usex = "M";
  }

      echo "<p align=\"center\">";
     $res = mysql_query("INSERT INTO ibwf_gallery SET uid='".$uid."', itemurl='".$itemurl."',last='".$crdate."', sex='".$usex."'");
               if($res)
      {

        echo "<img src=\"images/ok.gif\" alt=\"O\"/>successfully  added to your Gallery<br/>";
      }else{
        echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error<br/>";
      }
      
      echo "<a href=\"gallery.php?action=main&sid=$sid\">Galerija</a><br/>";
  echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
  echo "Happy </a>";
  echo "</p>";
echo "</card>";
}

and this is the code on my index indicates that the nick last added image to gallery

$lpg = mysql_fetch_array(mysql_query("SELECT id, uid FROM ibwf_gallery ORDER BY last DESC LIMIT 0,1"));
$rmg=mysql_fetch_array(mysql_query("SELECT itemurl, uid ,last FROM ibwf_gallery WHERE id='".$lpg[0]."'"));
$wick = getnick_uid($rmg[1]);
echo "<small><b>Last  upload of nick</b>   <a href=\"gallery.php?action=viewuser&who=$rmg[1]&sid=$sid\">$wick</a>$rmg[2]</small><br/>";

add this last int(100) NOT NULL,
to your sql

crazybrumi Super moderator Principal · 1,064 posts #25

lol why the fuk do u need this, u only need one lookup lol... and how do u exactly think your gna get a date without it being included in your database table. and also when upload a file there is no ability to save this into the database lol... and yes i would charge because some people just dont appreciate help, just go round bitchin

lol and why is sex varchar(255) at the most it needs to be 6 not 255 unless the word "Female" is 255 characters long.

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

brand Senior · 391 posts #26

cheeky-girl is using a lava script and when a member uploads a pic it does not go in to database she has female and male and so on

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

ksg91 Developer · 162 posts #29

crazybrumi wrote: lol why the fuk do u need this, u only need one lookup lol... and how do u exactly think your gna get a date without it being included in your database table. and also when upload a file there is no ability to save this into the database lol... and yes i would charge because some people just dont appreciate help, just go round bitchin

lol and why is sex varchar(255) at the most it needs to be 6 not 255 unless the word "Female" is 255 characters long.

i think 7 char should be needed for some ppl's sex lol.... 😉

Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in

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