ad esempio questa è la pagina
Codice PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>Documento senza titolo</title>
</head>
<body>
<?php include('server.php');
$db = mysql_connect($db_host, $db_username, $db_password);
mysql_select_db($database_name, $db);
$query = "SELECT * FROM blog_users WHERE user = '".mysql_real_escape_string($user)."'";
$q=mysql_query ($query) or die("errore: ".mysql_error());
$tmp=mysql_fetch_array($q);
$template=$tmp['template'];
?>
<table width="800" border="1" cellspacing="0" cellpadding="0">
<tr>
<th background="aaa.png" bgcolor="#D4D0C8" scope="col"> </th>
</tr>
</table>
</body>
</html>
dentro ai <?php ............ ?> mi prendo la variabile....
come faccio a modificare la riga
Codice PHP:
<th background="template1/aaa.png" bgcolor="#D4D0C8" scope="col"> </th>
perchè al posto di template1/aaa.png mi prenda $template/aaa.png ?