Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
Thread Tools
  #1  
Old 26th December 2012, 16:13
Ruffneck Ruffneck is offline
Senior Member
 
Join Date: Feb 2008
Posts: 71
Default BiBucket
hi everybody !

I have small problem with my bitbucket.php !

I wanna insert in DB filename + extension of pic !

example : 2.jpg

right now insert just extension without name !

this is my lines and bitbucket.php

Code:
$SQL = '' . 'SHOW
                   TABLE STATUS
          FROM
    ' . $mysql_db . '
           LIKE
      \'bitbucket\'';
            $result = sql_query ($SQL);
      $row = mysql_fetch_assoc ($result);
            $nextInsertId = $row['Auto_increment'];
      $handle->file_new_name_body = $nextInsertId;  
    
   //$name = sqlesc($nextInsertId);    
   $name = $handle->file_src_name_ext;
            $added = sqlesc(get_date_time());    
            sql_query("INSERT INTO bitbucket (owner, name, added) VALUES ($CURUSER[id], $name, $added)");
Attached Files
File Type: php bitbucket.php (4.4 KB, 14 views)

Last edited by joeroberts; 26th December 2012 at 16:29.
Reply With Quote
Reply

Tags
bibucket


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 05:44. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.