Advertisement
Kundello

Untitled

Feb 26th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. foreach ($result as $row) {
  2. if ($row['parent'] === "hdskin1024") {
  3. $parent = "hdskin1024";
  4. } else if ($row['parent'] === "hdskin512" && $parent !== "hdskin1024") {
  5. $parent = "hdskin512";
  6. } else if ($row['parent'] === "hdskin256" && $parent !== "hdskin1024" && $parent !== "hdskin512") {
  7. $parent = "hdskin256";
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement