ctcp Posted July 3, 2009 Share Posted July 3, 2009 $results = mysql_query("SELECT * FROM crackz WHERE `option` = 'yes' and `type` = '$type' and name LIKE '%". $query ."%' ORDER BY date DESC LIMIT $page, $limit"); my search how to add search by month and year... Link to comment https://forums.phpfreaks.com/topic/164661-search-by-month-and-year/ Share on other sites More sharing options...
SetToLoki Posted July 3, 2009 Share Posted July 3, 2009 $results = mysql_query("SELECT * FROM crackz WHERE `option` = 'yes' and `type` = '$type' and name LIKE '%". $query ."%' ORDER BY date DESC LIMIT $page, $limit"); my search how to add search by month and year... Think you need to add a little more info. Link to comment https://forums.phpfreaks.com/topic/164661-search-by-month-and-year/#findComment-868344 Share on other sites More sharing options...
backie Posted July 3, 2009 Share Posted July 3, 2009 An example record showing what all the feilds var types are would be helpful. Link to comment https://forums.phpfreaks.com/topic/164661-search-by-month-and-year/#findComment-868346 Share on other sites More sharing options...
ctcp Posted July 3, 2009 Author Share Posted July 3, 2009 <?php $results = mysql_query("SELECT * FROM crackz WHERE `option` = 'yes' and `type` = '$type' and name LIKE '%". $query ."%' ORDER BY date DESC LIMIT $page, $limit"); while ($data = mysql_fetch_array($results)) { ?> <table width="100%" border="0"> <tr> <td width="6%" align="center" nowrap bgcolor="#f8f0e0" scope="col"><a href="?type=<?=$data["type"]?>"><?=$data["type"]?></a></td> <td width="12%" align="center" nowrap bgcolor="#f8f0e0" scope="col"><?=$data["date"]?></td> <td width="14%" align="left" nowrap bgcolor="#f8f0e0" scope="col"> <? $URL_parts = @parse_url ($data["links"]); $DOMAIN = str_ireplace ("www.", "", $URL_parts['host']); ?><?if ( @is_file ("image/rapid/".$DOMAIN.".jpg" ) ){ echo $DOMAIN.""; }else{ echo "Unknown"; }?> </td> <td width="68%" align="left" nowrap bgcolor="#f8f0e0" scope="col"><a href="?section=view&id=<?=$data["id"]?>&type=<?=$type?>" title="<?=$data["name"]?>"><?=$data["name"]?></a></td> </tr> </table> <? } ?> Link to comment https://forums.phpfreaks.com/topic/164661-search-by-month-and-year/#findComment-868348 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.