Ok so I wrote a little script that allows me to call information from my database. Basicly this.
<table>
<tr>
<td id="seal"><?php
include("sql.php");
echo "$websiteaddress";
?></td></tr>
</table>
All this does is connects to the sql file echoing the users website address thus I type in mywebsite.com/index.php?name=aname and it returns their name now it also connects to a css file to display an image.
What I want to be able to do is display a different image depending on the url such as mywebsite.com/index.php?name=aname=red or mywebsite.com/index.php?name=aname=blue and it displays a red or blue image depending.
I thought about trying else elseif but can seem to get it to work.
How would I go about doing this? Any help would be appreciated. Please remember I am still learning so take it easy on me and if possible post the code for examples so I can try it and better understand the idea and concept.
Thank you.