[Wanted] Sql Maker

Spacemail by SpaceshipSpacemail by Spaceship
Watch

NetworkTown.Net

Account Closed
Impact
2
Hi

I need some thing that can make a sql when i tell the script to look in two folders eg: if i tell the script to look in images and look in swf and make a sql by looking at the files names if the file name is the same then it will make the sql and it should be that i can insert how to structure should be and where it should insert the files names ;)
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
If you're using PHP and if i get what you're asking (it's morning)you can use a switch

Example:

PHP:
$file_name = 'somefilename.jpg';
$extension = trim(strtolower(strrchr($file_name, ".")));
switch($extension){
 case ".bmp":
 case ".jpg":
 case ".jpeg":
 case ".gif":
 case ".png":
     $sql = "SELECT/INSERT/WHATEVER from images etc...";
 break;
 case ".swf":
     $sql = "SELECT/INSERT/WHATEVER from flash etc...";
 break;
}
 
0
•••
Noobie said:
If you're using PHP and if i get what you're asking (it's morning)you can use a switch

Example:

PHP:
$file_name = 'somefilename.jpg';
$extension = trim(strtolower(strrchr($file_name, ".")));
switch($extension){
 case ".bmp":
 case ".jpg":
 case ".jpeg":
 case ".gif":
 case ".png":
     $sql = "SELECT/INSERT/WHATEVER from images etc...";
 break;
 case ".swf":
     $sql = "SELECT/INSERT/WHATEVER from flash etc...";
 break;
}

with this will it show up a sql? and can you insert the structure for me please the structure is: INSERT INTO `games` VALUES ('', 10, 'FLASHFILE.swf', 'GAME NAME', 0, 1, 'FLASHFILE_THUMBNAIL.gif', '400', '300', 'GAME DESCRIPTION!', 0, '');
 
0
•••
are you making a flash games addon or what?
Why not just create a form with 2 file browsers (one for your image/thumb) one for your flash game then the other relevant fields
 
0
•••
i dont know how to and i can't it will take long since i have 1300+ to do
 
0
•••
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back