matthewhaworth Posted August 27, 2007 Share Posted August 27, 2007 Say I have, iD, username, password, aboutme, name, age, blah. And I want to select * BUT password, how can I do it? Edit: without listing them.. Quote Link to comment Share on other sites More sharing options...
teng84 Posted August 27, 2007 Share Posted August 27, 2007 add a where clause sample i use * but dont use it its good for sample only select * from table where field = your damnpassword Quote Link to comment Share on other sites More sharing options...
matthewhaworth Posted August 27, 2007 Author Share Posted August 27, 2007 add a where clause sample i use * but dont use it its good for sample only select * from table where field = your damnpassword But on mysql_fetch_assoc, that'll return the key 'password' still. Quote Link to comment Share on other sites More sharing options...
btherl Posted August 27, 2007 Share Posted August 27, 2007 You can't, and I can't imagine why you would want to. The query will not be any faster, and you can always remove the password from the result. You could also list the columns, which gives you self-documenting code. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.