Uncaught SyntaxError: Unexpected token ; BUT WHERE
<p>I'm getting this error but i can't see what is wrong. I need a little help.
I've tried everything: looked for illegal characters, erasing the semi colon but i can't fix  it anyway.</p>

<pre><code>(function(){


$.ajax({
dataType:           "json",
url:                "prueba.php",
type:               "get",
data:               "t=javascript",
success:function(inf){

    var div += "&lt;span class='carpeta'&gt;";//&lt;-- here is where the error comes but i dont see anything!
    div =+ "&lt;span class='titulo'&gt;"+inf["categoria"]+"&lt;h2&gt;"+inf["titulo"]+"&lt;/h2&gt;&lt;/span&gt;";//cerrando titulo
    div =+"&lt;span class='mascara'&gt;"; 
    div =+"&lt;h2&gt;"+inf["titulo"]+"&lt;/h2&gt;"; 
    div =+ "&lt;p&gt;"+info["descripcion"]+"&lt;/p&gt;";
    div =+ "&lt;a onclick('tutorial_numero("+1+")') href='javascript:void(0)'&gt;Leer mas&lt;/a&gt;";
    div =+"&lt;/span&gt;"; //cerrando el span de la class mascara
    div =+ "&lt;/span&gt;";//cerrando el span de la class carpeta


    document.getElementById("contenido").innerHTML = "porque tio";
    alert("ola k ase")
}
});

})();
</code></pre>

<p>the php code</p>

<pre><code>&lt;?php


if(isset($_GET["t"]))

{



require 'conexion.php';

$getConexion = new conexion();

$conexion_mysql  = $getConexion-&gt;mysql();

$id_tutorial = $_GET["t"];$query = "SELECT titulo,contenido_tutorial,descripcion,categoria FROM tituriales WHERE tags LIKE '%$id_tutorial%'";

    $ejecutar_query = $conexion_mysql-&gt;prepare($query);

    $ejecutar_query-&gt;execute();

        $enviar = $ejecutar_query-&gt;fetchAll(PDO::FETCH_ASSOC);

        foreach($enviar as $resultado)
        {

            $f['titulo'] = $resultado['titulo'];
            $f['contenido'] = $resultado['contenido_tutorial'];
            $f['descripcion'] = $resultado['descripcion'];

            if($resultado['categoria']=="web");
            {
                $f['categoria'] = "&lt;img src='../pc.png' /&gt;";
            }
            if($resultado['categoria']=="desktop")
            {
                $f['categoria'] = "@";
            }
            if($resultado['categoria']=="ambos")
            {
                $f['categoria'] = "klk";
            }

            //echo $f["categoria"];

            echo json_encode($f);

        }



}



?&gt;
</code></pre>
