Skip to content

u/thematrix307

In this archive from Jul 2011 to Dec 2013

0
posts
29
comments
0
media
106
score

Top comments

If You aren't using parameterized queries and the ids aren't direct user input then You could do something like this:

$query = "select * from mytable where id in (" . implode(',', $ids) . ")";

Definitely better than separate queries as you only need one connection to the database.

7 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.