MartynJ
Mon 2nd Sep '02, 6:52pm
I have a minor problem that is driving me mad.
Basically I am making a blog system for my site, and at the moment there only being two users, the system for getting which user is easy, eg, if it is not A it must be B.
This code gets the user info and assigns that to the $avatar variable so that I can echo that back in some img tags.
if (($row->postedby)==UserA) {
$avatar='http://pathtoserver/avatar1.gif';
}
else
{
$avatar='http://pathtoserver/avatar2.gif';
}
Now, it works ok, except that it adds a ; to the end of the URL...
so I get <img src="http://pathtoserver/avatar1.gif;">
Any ideas? Please?
Basically I am making a blog system for my site, and at the moment there only being two users, the system for getting which user is easy, eg, if it is not A it must be B.
This code gets the user info and assigns that to the $avatar variable so that I can echo that back in some img tags.
if (($row->postedby)==UserA) {
$avatar='http://pathtoserver/avatar1.gif';
}
else
{
$avatar='http://pathtoserver/avatar2.gif';
}
Now, it works ok, except that it adds a ; to the end of the URL...
so I get <img src="http://pathtoserver/avatar1.gif;">
Any ideas? Please?