28rain Posted August 14, 2009 Share Posted August 14, 2009 For example I have a table (page_count) with fields;Page_name, date, value. And I want to extract the value from a specific Page_name and Date Ok no sense... This is what i think it might look like: $sql = "SELECT value FROM page_count WHERE date='$date' && page_name='$pagename'"; The && bit, is that possible? THanks Link to comment https://forums.phpfreaks.com/topic/170284-solved-use-where-to-use-2-different-columns-to-extract-a-result/ Share on other sites More sharing options...
mikesta707 Posted August 14, 2009 Share Posted August 14, 2009 instead of && use AND Link to comment https://forums.phpfreaks.com/topic/170284-solved-use-where-to-use-2-different-columns-to-extract-a-result/#findComment-898258 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.