ricmetal Posted March 13, 2009 Share Posted March 13, 2009 hey, so how do i search a db column for a specific value? Link to comment https://forums.phpfreaks.com/topic/149218-solved-column-search-for-value/ Share on other sites More sharing options...
ricmetal Posted March 13, 2009 Author Share Posted March 13, 2009 SELECT * FROM table? Link to comment https://forums.phpfreaks.com/topic/149218-solved-column-search-for-value/#findComment-783607 Share on other sites More sharing options...
kev wood Posted March 13, 2009 Share Posted March 13, 2009 you need to use the where clause of a mysql statement. the following statement will search through a db for a specific value held by the variable $table $query = "SELECT * FROM emails WHERE page = '$table'"; the column name is page and the variable holds the value to search for although this does not have to be a variable. Link to comment https://forums.phpfreaks.com/topic/149218-solved-column-search-for-value/#findComment-783608 Share on other sites More sharing options...
ricmetal Posted March 13, 2009 Author Share Posted March 13, 2009 oh, ok thanks Link to comment https://forums.phpfreaks.com/topic/149218-solved-column-search-for-value/#findComment-783612 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.