note 44046 added to function.get-magic-quotes-gpc

From: Date: Tue, 13 Jul 2004 14:36:27 +0000
Subject: note 44046 added to function.get-magic-quotes-gpc
Groups: php.notes 
Request: Send a blank email to php-notes+get-73160@lists.php.net to get a copy of this message
Este exemplo, meramente ilustrativo, apresenta o uso do get_magic_quotes_gpc() na pratica. Usando ? e : $loginUsername=$_POST['user']; $password=md5($_POST['pass']); mysql_select_db($database_db, $db); $LoginRS__query=sprintf("select usuario.hash, usuario.apelido, usuario.nivel, usuario.senha, funcionarios.nome, funcionarios.cargo from usuario, funcionarios WHERE usuario.apelido='%s' AND usuario.senha='%s' AND usuario.usuario = funcionarios.hash", get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password)); fonte: Dreamweaver. ---- Manual Page -- http://www.php.net/manual/en/function.get-magic-quotes-gpc.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44046 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44046&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44046&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#73160) next »