Originariamente inviato da niquesca
sapreste dirmi perchè scrivendo questa riga

html += onmouseout=" function (event) {alert(\'here I am\');}" onmouseover="function (event) {alert(\'he went thataway\');}">


ho il seguente errore?
Parse error: syntax error, unexpected T_FUNCTION in C:\Inetpub\wwwroot\ordini\vcl\dbgrids.order.inc.ph p on line 740
Ma stiamo ancora parlando di codice php?

Perchè a rigor di logica dovrebbe essere qualcosa del tipo:

$html += 'onmouseout=" function (event) {alert(\'here I am\');}" onmouseover="function (event) {alert(\'he went thataway\');}">';