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!
the console image is displayed ($platform1)
Okay so for some reason it keeps showing the image images/consoles/old/ps3.gif next to each screenshot instead of the correct image depending on what the database has it as.
1. "=" means "set value to", while "==" means "equal to"
2. use single or double quotes arround your strings. I.e. instead of ps3 you should use "ps3" or 'ps3'
There are 10 types of people in this world, those who understand binary and those who don't
Im not new to php but im no expert lol. Im still picking up on little things and i guess you learn from your mistakes. I wont be making this mistake again.
Also, be sure to encapsulate your strings in quotes or PHP is thinking that your looking for the value of a constant. It works because if the engine can't find a constant with that name it will interpret it as a string.