i want to be able to delete all files in the gallery and downlods on wapdesire v2 can anyone help.
iv tried and tried and tried but its getin me no where and its pissin meoff mnw
Want something coded email me at sales@webnwaphost.com for a prices.
Started on the old forum in August 2009 · view the original in the archive · old links redirect here
i want to be able to delete all files in the gallery and downlods on wapdesire v2 can anyone help.
iv tried and tried and tried but its getin me no where and its pissin meoff mnw
Want something coded email me at sales@webnwaphost.com for a prices.
use this tool
uplink("pictures/$item[0]");
uplink is a php deleting tool
also add mysql to delete the sql
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
Subzero might have typed it wrong in a hurry
Alternative mobile advertising network .. Minimum 100 USD pay / NET15 pay cycle, Good Brand, Best targeting for Android goo.gl/6vub3
$file=mysql_fetch_array(mysql_query("SELECT filename, path FROM gallery_files WHERE uid='".$who."'")); $nick=explode("(",$file[0]); $filename=explode("gallery/",$file[1]); unlink("../gallery/$filename[1]");
iv been bessing around with this all yesterday and it only deletes one when i try and make it to delete all it dosnt wana play ball
Want something coded email me at sales@webnwaphost.com for a prices.
uplink is right ;)8)
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
sub isnt it unlink not uplink if you wna delete
Want something coded email me at sales@webnwaphost.com for a prices.
subzero wrote: uplink is right ;)8)
it's unlink..
My Blog: http://jhommark.blogspot.com My Facebook: http://www.facebook.com/jhommark My Official Site: http://www.undergroundweb.tk My Community Site: http://undergroundwap.xtreemhost.com
geez i must be true nub spelling yeah its unlink
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
mobileGIGS wrote: no it suplink() haa
i haven't used uplink but ok, i agree with you and subzero.,maybe you have tested it.,but also unlink is working too..That's what i use..From the word itself..Unlink..Means like to remove..Am i right?..unlink or uplink..whatever.,the important is what function will remove the file..Coz for me, unlink() works..
My Blog: http://jhommark.blogspot.com My Facebook: http://www.facebook.com/jhommark My Official Site: http://www.undergroundweb.tk My Community Site: http://undergroundwap.xtreemhost.com
No its unlink a spelling error for me
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
subzero wrote: No its unlink a spelling error for me
ok fine.,lol..i see..but letter n is far from letter p..mobile or pc..
My Blog: http://jhommark.blogspot.com My Facebook: http://www.facebook.com/jhommark My Official Site: http://www.undergroundweb.tk My Community Site: http://undergroundwap.xtreemhost.com
syrus wrote: its quite easy @brumi if u do it like that only 1 record will b deleted. use a while statement but before u end it check if tha file exist then unlink. U could delete both user and file at once, send me that page n sql after work ill fix it up
yup you where right, i just coded and tryed this and it worked.
$sql = "SELECT filename, path FROM gallery_files WHERE uid='".$who."'";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
while ($item = mysql_fetch_array($items))
{
$filename=explode("gallery/",$item[0]);
unlink("../gallery/$filename[0]");
}
Want something coded email me at sales@webnwaphost.com for a prices.
crazybrumi wrote: yup you where right, i just coded and tryed this and it worked.
$sql = "SELECT filename, path FROM gallery_files WHERE uid='".$who."'"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) while ($item = mysql_fetch_array($items)) { $filename=explode("gallery/",$item[0]); unlink("../gallery/$filename[0]"); }
also to avoid some errors in case the file dnt exist u cld use
if(file_exist($file)){ unlink($link_variable); }
i got a branching structure inplace swell to not cause error instead itl have an error message set by me.
Want something coded email me at sales@webnwaphost.com for a prices.