Ciao a tutti, il codice che segue mi da
cioè .'</td>...Non so molto pratico in php ma non capisco perchè mi da errore, qualcuno riesce ad aiutarmi please?Parse error: syntax error, unexpected '.' in C:\wamp\www\paginaunica\main.php on line 17
Codice PHP:
<?php
$connessione = mysql_connect('localhost','root','');
mysql_select_db('paginaunica',$connessione);
echo'
<html>
<head>
<meta>
<title>Pagina unica</title>
</head>
<body>
<table width="450" border="1">
<tr>
<td>'.
$tabella = mysql_query("SELECT * FROM titoli");
$rec = mysql_num_rows($tabella);
for($i=0; $i<$rec; $i++)
{
$titoli = mysql_fetch_array($tabella);
$titoli["nome"];
}
.'</td>
<td></td>
</tr>
</table>
</body>
</html>';
?>