Advertisement
Guest User

Untitled

a guest
Apr 7th, 2014
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. $sql_assoc = "SELECT test FROM test"
  2. foreach ($sql_assoc as $result){
  3. foreach ( $result as $key => $value ) {
  4. $keys = $key;
  5. echo " " . $keys;
  6. unset($sql_assoc[$key]);
  7. }
  8. }
  9.  
  10. Output
  11. Unwanted Result Wanted Result Wanted Result Wanted Result etc.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement