ctcp Posted June 25, 2009 Share Posted June 25, 2009 <?php $results = mysql_query("select * from crackz where `option` = 'Yes' and type = 'games' and name like '".chr($numbs)."%' ORDER BY date DESC LIMIT $page, $limit"); while ($data = mysql_fetch_array($results)) { ?> <li>[<?=$data["type"]?>] [<?=$data["date"]?>] <a href="?section=view&id=<?=$data["id"]?>&type=<?=$type?>" title="<?=$data["name"]?>"><?=$data["name"]?></a> </li> this work fine but if my record start from space not work.. i mean (mplampla) work ( mplampla) not work how to fix this ? Link to comment https://forums.phpfreaks.com/topic/163635-results-view/ Share on other sites More sharing options...
ctcp Posted June 25, 2009 Author Share Posted June 25, 2009 im view results by * A * B * C * D * E * F * G * H * I if you not understant Link to comment https://forums.phpfreaks.com/topic/163635-results-view/#findComment-863398 Share on other sites More sharing options...
ctcp Posted June 25, 2009 Author Share Posted June 25, 2009 help Link to comment https://forums.phpfreaks.com/topic/163635-results-view/#findComment-863478 Share on other sites More sharing options...
MatthewJ Posted June 25, 2009 Share Posted June 25, 2009 trim the spaces from the names... data should not start with a space Link to comment https://forums.phpfreaks.com/topic/163635-results-view/#findComment-863480 Share on other sites More sharing options...
MatthewJ Posted June 25, 2009 Share Posted June 25, 2009 You could do that with $results = mysql_query("select * from crackz where `option` = 'Yes' and type = 'games' and LTRIM(name) like '".chr($numbs)."%' ORDER BY date DESC LIMIT $page, $limit"); Link to comment https://forums.phpfreaks.com/topic/163635-results-view/#findComment-863488 Share on other sites More sharing options...
ctcp Posted June 25, 2009 Author Share Posted June 25, 2009 thank you mate :-) Link to comment https://forums.phpfreaks.com/topic/163635-results-view/#findComment-863541 Share on other sites More sharing options...
MatthewJ Posted June 25, 2009 Share Posted June 25, 2009 No problem at all. Link to comment https://forums.phpfreaks.com/topic/163635-results-view/#findComment-863544 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.