if i have the height of a table like <table width="11" height="<?php $height=13; ?> will it work
yes. but it won't set the height of the table. the php code is setting variable $height to 13. what you may need/want is:
<TABLE WIDTH="11" HEIGHT="<?php $height=13; echo $height; ?>">
or just:
<TABLE WIDTH="11" HEIGHT="<?php echo $height; ?>">
Yes, it should work just fine because PHP is an inline scripting language.
Another useful application of this is as follows:
<?php $size = GetImageSize ("http://www.php.net/gifs/logo.gif"); ?> <img src="http://www.php.net/gifs/logo.gif" <?php=$size[3];?>>
This will give the correct width and height for the image.
Cheers,
Note that "height" is not a valid attribute in the table element. It once was valid for th and td but is now DEPRECATED and you should NOT use it. If you use it there is NO warranty it will function as you think in other and/or future browsers. For more information see W3C homepage about MarkUp.