Skip to content

Instantly share code, notes, and snippets.

@snowbob
Created November 10, 2018 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snowbob/0b61a81997c844722621ff50f32dfea8 to your computer and use it in GitHub Desktop.
Save snowbob/0b61a81997c844722621ff50f32dfea8 to your computer and use it in GitHub Desktop.
implde array to use in in query
while($row=mysql_fetch_assoc($result)) {
$users_array[]= "'".$row['user']."'";
}
$user_list = implode(',', $users_array);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment