Log in

View Full Version : Why won't this close out?


Warlord
10-11-2004, 02:55 AM
printf("<p align=right> %s\n<br>", $myrow['image'], "</p>");


Why won't that last </P> work?

Natch
10-11-2004, 03:32 AM
printf("<p align=right> %s\n<br /></p>", $myrow['image']);

Warlord
10-11-2004, 04:01 AM
Well paint me purple and call me stupid. I thought that the end tag would have to surround what was being called from the db to close the start tag preceding it.

Thanks. Now that I know that, maybe I can figure out how to do partial img's tags and only store the filename in the db.

Natch
10-11-2004, 04:03 AM
Read the php.net manual for sprintf - it explains the way to use sprintf and printf, esp if you wanna have your variables in a different order than the placement of them in the $format.