« first day (1258 days earlier)      last day (1400 days later) » 

m59
12:00 AM
I see. I was using jQuery as an example, with reluctance on account of the stigma. I don't use it either.
 
 
16 hours later…
m59
3:53 PM
What's the best approach to a query where all I need to know if a field is already present? I'm making a call to the server just to see if the userName is taken.
I know I could do it with WHERE user_name = ?, but there's also EXISTS...but it seems like a worse solution. I probably just don't know how to use it.
 
 
4 hours later…
8:14 PM
@m59 I usually do SELECT COUNT(*) FROM user WHERE username = ?, but you could also SELECT 1 and check the rowcount too
 
m59
cool
 
 
3 hours later…
11:30 PM
is anybody out there?
 

« first day (1258 days earlier)      last day (1400 days later) »