Anyone here good with PHP
|
|
Adam Munich
|
|
Registered Member #2893
Joined: Tue Jun 01 2010, 09:25PM
Location: Cali-forn. i. a.
Posts: 2242
|
I had no clue what was going on there ^^ so I came up with this:
if ($action == "delete")
{
$sql = "SELECT imgURL FROM md_postings WHERE confirmPassword='$confirmPassword'";
$result = mysql_fetch_array(mysql_query($sql)) or die();
foreach($img as $var)
{
$img = $var;
unlink($img);
}
$sql = "SELECT imgURLThumb FROM md_postings WHERE confirmPassword='$confirmPassword'";
$result = mysql_fetch_array(mysql_query($sql)) or die();
foreach($img as $var)
{
$img = $var;
unlink($img);
} Seems to work.
|
Back to top
|
|
Platinum
|
|
Registered Member #3926
Joined: Fri Jun 03 2011, 08:32PM
Location: UK.
Posts: 525
|
I am, I can code, very good at:
VB.NET
PHP
Javascript
And I own multiple mybb forums, PM me.
|
Back to top
|
|
Adam Munich
|
|
Registered Member #2893
Joined: Tue Jun 01 2010, 09:25PM
Location: Cali-forn. i. a.
Posts: 2242
|
Actually I got it sorted out myself,
Need to put that translate button in the right place though...
|
Back to top
|
|
Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob
|
|
Powered by e107 Forum System
|