PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am trying to create a link for each year of items in my database, yet the text is not showing up...
The "nav tab" is, because I can see the background image from the class="miniTabOn".
OK I see now, it's not the query at fault, it's your substr() operation. You are asking it to select a string starting at position 0, but not greater than 6 characters from the last character position. Since your string is only 4 characters long, it will return empty. So just remove the substr() and you should be fine (and update the variable reference).
John Cartwright wrote:OK I see now, it's not the query at fault, it's your substr() operation. You are asking it to select a string starting at position 0, but not greater than 6 characters from the last character position. Since your string is only 4 characters long, it will return empty. So just remove the substr() and you should be fine (and update the variable reference).