Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Template Shares (http://www.bvlist.com/forumdisplay.php?f=26)
-   -   BiBucket (http://www.bvlist.com/showthread.php?t=8695)

Ruffneck 26th December 2012 16:13

BiBucket
 
1 Attachment(s)
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)");



All times are GMT +2. The time now is 02:32.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.