Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. $query = 'SHOW COLUMNS FROM userinfo';
  2. $result = mysql_query($query) or report_sql_error($query, __FILE__, __LINE__);
  3. while($data = mysql_fetch_assoc($result))
  4. {
  5. if($data['Field'] == 'profile_theme' && substr($data['Type'], 0, 5) == 'enum(')
  6. {
  7. $types = substr($data['Type'], 6, -2);
  8. $profile_themes = explode("','", $types);
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement