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 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. Link to comment https://forums.phpfreaks.com/topic/55471-need-help-with-phpmysql/#findComment-274152 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.