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 Link to comment https://forums.phpfreaks.com/topic/37954-query-problem/ Share on other sites More sharing options...
Jessica Posted February 10, 2007 Share Posted February 10, 2007 What database library are you using? Link to comment https://forums.phpfreaks.com/topic/37954-query-problem/#findComment-181633 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? Link to comment https://forums.phpfreaks.com/topic/37954-query-problem/#findComment-181635 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. Link to comment https://forums.phpfreaks.com/topic/37954-query-problem/#findComment-181639 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.