note 110063 deleted from function.mysql-query by googleguy

From: Date: Sun, 16 Sep 2012 00:08:00 +0000
Subject: note 110063 deleted from function.mysql-query by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190797@lists.php.net to get a copy of this message
Note Submitter: cesarandresvelasquez at gmail dot com ---- My query works fine, run the SQL in APPSERV, but throw me an error. "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in" this is my code: $con = new conexion(); $link = $con->conectar(); $SQL = 'SELECT * FROM usuario INNER JOIN persona ON usuario.id_persona = persona.id WHERE usuario.tipo = "'.$tipo.'" AND usuario.contraseña = "'.$pass.'" AND usuario.nombreUsuario = "'.$user.'"'; $rs = mysql_query($SQL,$link); $row = mysql_fetch_array($rs);//end The incredible thing is that previously run a query and it worked fine. Thank You.

« previous php.notes (#190797) next »