Re: HELP : different behaviour between midgard 1.5 and 1.7

Piotras <pp-VVDi8QVAvoBWk0Htik3J/[email protected]> Wed, 31 Aug 2005 14:29:03 +0200
Newsgroups gmane.comp.web.midgard.user
Message-ID <[email protected]>
"Rialhon, Jean Yves" <[email protected]> wrote:

>   if ($resultat = mysql_query($requete)) return $resultat;
>   else erreur("Erreur dans la demande : $requete<BR>".mysql_error());
> }  common_function contains display func : 

You should use connection handler in mysql_query.

http://php.net/manual/en/function.mysql-query.php

>   Warning: mysql_query(): A link to the server could not be established in /usr/lib/apache2/modules/midgard-root-nommp.php(41) : eval()'d code on line 159
> 
> 
> this error occurs since i moved from midgard 1.5 to 1.7. 
> never met such issue on 1.5.

Did you update php4 and MySQL too?

Piotras