ok, i know this is very easy with coders that had an experience with this before.
<html>
<head>
<title>dynamic width of html table</title>
<head>
<?php
//controlling the width of the table box.
function control_message_box($width) {
$custom_width = 400;
?>
<br><br><br><br><br>
<div align="center">
<center>
<table border="1" width="insert dynamic value here! " bordercolor="#FF00FF" bgcolor="#00FFFF">
<tr>
<td width="100%" align="center">Error message!</td>
</tr>
</table>
</center>
</div>
<?php
}
control_message_box(0);
?>
</body>
</html>
what i want to do with this is just to make the width of the HTML width flexible
and must mix with PHP codes. so when i change the width value i can change
it dynamically depending of the length of the message.
how can i do this?
thank u very much n advnce.
:rolleyes: