Jump to content

Query problem


CanMan2004

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.