I am developing a site that uses multiple queries. [b]It works fine on my remote server of my company[/b]. But when i use my own prove server with Apache or even IIS and PHP 4 and even 5 i get the same error when executing a query: [b]Notice: Undefined variable: Clinica in e:\Inetpub\wwwroot\Prueba\Bienvenida5.php on line 79 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in e:\Inetpub\wwwroot\Prueba\Bienvenida5.php on line 79[/b] I don't know what might be happening, i have the exact copy of the site in my system. Here is the section code that doesn't run: [code] <TR> <TD height=" <?php mysql_select_db($database_clinica, $clinica); $query_rsMenu = "SELECT COUNT(m.menCod) * 21 AS Total FROM Menu m, Privilegio p, Grupo g, Miembro i, Usuario u WHERE m.menSuperior IS NULL AND m.menCod = p.menCod AND p.gruCod = g.gruCod AND i.gruCod = g.gruCod AND i.usuCod = u.usuCod AND u.usuNombre = '".$_SESSION['usuNombre']."'"; $rsMenu = mysql_query($query_rsMenu, $Clinica) or die(mysql_error()); $row_rsMenu = mysql_fetch_assoc($rsMenu); echo $row_rsMenu['Total']; ?>"> <?php echo($query_rsMenu); ?></TD> </TR> [/code] The code should generate the height of a column in base of $_SESSION['usuNombre']. Help me please, thank you guys.