Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

fix for SearchingPage.php to delate planets #2

Closed
GoogleCodeExporter opened this issue Apr 21, 2015 · 2 comments
Closed

fix for SearchingPage.php to delate planets #2

GoogleCodeExporter opened this issue Apr 21, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

Hi slaver on your new update mor precise on the file adm/SearchingPage.php

you have a funcion calling this "DeleteSelectedPlanet" but you dont havet 

so i had that to the "DeleteSelectedUser" in includs/funcions 

function DeleteSelectedPlanet ($ID)
    {
        global $lang, $db;

        $QueryPlanet = $db->fetch_array($db->query("SELECT
galaxy,planet,system,planet_type FROM ".PLANETS." WHERE id = '".$ID."';"));

        if ($QueryPlanet['planet_type'] == '3')
        {
            $db->query("DELETE FROM ".PLANETS." WHERE id = '".$ID."';");
            $db->query("UPDATE ".PLANETS." SET id_luna = 0 WHERE id_luna = '".$ID."';");
        }
        else
        {
            $db->query("DELETE FROM ".PLANETS." WHERE galaxy =
'".$QueryPlanet['galaxy']."' AND system = '".$QueryPlanet['system']."' AND
planet = '".$QueryPlanet['planet']."'");
            $db->query("DELETE FROM ".PLANETS." WHERE id_planet = '".$ID."'");
        }
    }





Original issue reported on code.google.com by jacota6...@gmail.com on 3 Apr 2010 at 12:19

@GoogleCodeExporter
Copy link
Author

fixed

Original comment by slaver7 on 4 Apr 2010 at 2:12

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Original comment by slaver7 on 10 Jan 2012 at 12:13

  • Added labels: closed

@ghost ghost mentioned this issue Jan 16, 2016
@Jbaukens Jbaukens mentioned this issue Apr 23, 2016
This was referenced May 19, 2016
This was referenced May 25, 2016
This was referenced May 15, 2017
This was referenced May 27, 2017
@xteriumboy xteriumboy mentioned this issue Aug 17, 2017
This was referenced Nov 2, 2018
@ghost ghost mentioned this issue Dec 6, 2018
jkroepke pushed a commit that referenced this issue Aug 18, 2019
jkroepke pushed a commit that referenced this issue Aug 18, 2019
jkroepke pushed a commit that referenced this issue Aug 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant