Yomar Urungar: PHP Varialbe in html einbauen?

Beitrag lesen

Hallo,

ich möchte das Attribut width einer Tabelle in einer php variable speichern.
Ich habe das so versucht

<?php
 var $table_Width = 123;
....
?>

<html>....
...
<table width ="<?php $table_Width ?>"....>
</table>

...
</html>

aber das funktioniert nicht. Wenn ich mir den quellcode im browser anschaue bekomme ich:

<table width =""....>
</table>

...
</html>

also für width gar nix.

Wieso?
lg
Yomar