Advertisement
Guest User

Untitled

a guest
May 4th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. $query = $this->mysqli_link->query("SELECT custom_id FROM sjs_custom_orders ORDER BY custom_id DESC LIMIT 1")->fetch_array();
  2. $custom_id_old = $query['custom_id'];
  3. $custom_id_new_split = explode("/", $custom_id_old);
  4. $custom_id = $custom_id_new_split[2] + 1;
  5. $custom_id_new = "SJS/CUSTOM/" . $custom_id;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement