Luis Lebron wrote:
<snip>
If I use the following query string it does not work
$query="Select * from users where userid='$_POST['userid']'";
<snip>

Use curly braces to eval array elements inside of a string....

$query = "SELECT * FROM users WHERE userid='{$_POST['userid']}'";

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to