note 110063 added to function.mysql-query

From: Date: Sat, 15 Sep 2012 23:55:28 +0000
Subject: note 110063 added to function.mysql-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-190796@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 181.133.119.59 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-query.php Edit -- https://master.php.net/note/edit/110063 Del: integrated -- https://master.php.net/note/delete/110063/integrated Del: useless -- https://master.php.net/note/delete/110063/useless Del: bad code -- https://master.php.net/note/delete/110063/bad+code Del: spam -- https://master.php.net/note/delete/110063/spam Del: non-english -- https://master.php.net/note/delete/110063/non-english Del: in docs -- https://master.php.net/note/delete/110063/in+docs Del: other reasons-- https://master.php.net/note/delete/110063 Reject -- https://master.php.net/note/reject/110063 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#190796) next »