CanMan2004 Posted February 10, 2007 Share Posted February 10, 2007 Hi all I've got some code which does a query on a database and then returns a list of document ares and under each area, is the relevant documents. For some reason, it wont return the document area names if they contain an uppercase character or a symbol such as / or ' for some reason, it will return the areas containing a & symbol. The code I believe is doing this is $qry = $this->DB->prepare("SELECT * FROM page_documents WHERE pd_pgid=:id"); $qry->bindParam(":id", $id); $qry->execute(); while ($row = $qry->fetch()) { $a[] = $row['pd_dmid']; } But I cannot see what could be doing it. Can anyone help Thanks in advance Ed Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 10, 2007 Share Posted February 10, 2007 What database library are you using? Quote Link to comment Share on other sites More sharing options...
CanMan2004 Posted February 10, 2007 Author Share Posted February 10, 2007 not 100% sure, doing this for a friend, what could they be? Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 10, 2007 Share Posted February 10, 2007 I don't know, but the fact that it's in a class form indicates it's not just regular PHP functions, it's a custom library. You need to find out what it is then check their documentation, and if you can't get it post in the third party forum. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.