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 having a bit of problem with my database images. I posted a couple of days ago to see how I can get a row of 6 images if anyone remembers. Anyway the problem now is that its not showing the ID for the links. The code go's like:
When MySQL returns a associative array it is case sensitive, e.g. if you created the table column as 'ID' it will return 'ID' whereas if the column was created as 'id' then it will be returned as 'id'.
Also, you are assigning a value to $ID each time you call a result row. Which means when you exit the while loop $ID will only have the value of the last result row. You need to declare $ID as an array.
You should try increasing your error level reporting to report 'notices' it will help to give you some hints as to where the problem may be.