Re: SQL: Limit 1 usage?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> $sql = "SELECT * FROM accessnums WHERE areacode=$_POST[areacode]' and
city='$_POST[cityselected]' ORDER BY network LIMIT 1";
>
> It can't execute the query.  Any suggestions?

Unless it's a typo, you're missing a single quote around $_POST[areacode]...

---John Holmes...


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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux