I am trying to organize my content as the first character. So far, I have done something like this:
PHP:
$first_char = $_GET['search']; $sql = "SELECT id FROM table WHERE SUBSTR(title,1,1) = '".$first_char."'" ....
HTML:
<a href="?search=a">[A]</a> <a href="?search=b">[B]</a> ... <a href="?search=z">[Z]</a> <a href="?search=nr">[#]</a>
The fact is that when you press [A], it displays headings starting with "A". What I want to do is press [#] so that it displays all messages starting with a number. So, when $ _ GET = 'nr' displays all the headers starting with a number ... I tried to do this with array (), but I failed.
Do you have any suggestions?
Cosmi source share