powaz Posted June 13, 2007 Share Posted June 13, 2007 hi i need help width search how to write query search. It should show the numbers smaller that i write in textfield like "weight <='some numbers '" please help i need it.... thanx Quote Link to comment https://forums.phpfreaks.com/topic/55471-need-help-with-phpmysql/ Share on other sites More sharing options...
Link Posted June 13, 2007 Share Posted June 13, 2007 If the weight entered is 59: mysql_query("SELECT * FROM database.table WHERE weight<59"); You can sub out weight for the * to get just the weights. The * allows you to get all the fields in the table that match the query. Quote Link to comment https://forums.phpfreaks.com/topic/55471-need-help-with-phpmysql/#findComment-274152 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.