Ciao a tutti, torno con un nuovo problema:
Codice PHP:
<div id="checkinDiv">
<a href="javascript: void(0)" target="client" onClick="openClient(); window.status='Check in!';"><?
include("config.php");
include("mysql.php");
$client_closed = mysql_fetch_array(mysql_query("SELECT client_closed FROM cms_system"));
$client_closed = $client_closed[0];
if($client_closed == 0){ echo "<img src=\"images/check_in_2.gif\" alt=\"Check in!\" border=\"0\" width=\"80\" height=\"80\">" } else { echo "<img src=\"images/check_in.gif\" alt=\"Check in!\" border=\"0\" width=\"80\" height=\"80\">" } ?>
Questo codice che ho scritto dovrebbe permettermi nel caso la query client_closed nella tabella cms_system sia 1 di mostrare un bottone con su scritto "Client Chiuso" nel caso invece la query sia 0 di mostrare un bottone con su scritto "Client Aperto" peccato che quando vada nella pagina risulta bianca con l'errore:
Parse error: syntax error, unexpected '}', expecting ',' or ';' in C:\inetpub\wwwroot\index.php on line 161
Come posso risolvere?