List Info

Thread: Problem Forming PQN Query




Problem Forming PQN Query
user name
2006-09-26 14:01:03
Aaron Huber writes:
 > When I try to form a PQN query by concatenating two
string
 > variables, it won' t go through.  When I hard code
this query, it
 > works fine.  How can I go about this?
 > 
 > Thank You.
 > Aaron S. Huber
 > Coral Springs, FL
 > 
 > $bib1 = "attr 1=4";
 > 
 > $search = "clinton";
 > 
 > $query = $bib1 . " " . $search;
 > 
 > $rs = $conn->search('$query');

What does "won't go through" mean?

Adding a simple
	print "'$query'n";
before the call to search() shows that the query string is:
	'attr 1=4 clinton'
which looks fine to me.

I suspect sunspots.

 _/|_	
____________________________________________________________
_______
/o ) /  Mike Taylor    <mikeindexdata.com>    http://www.miketaylor.or
g.uk
)_v__/  "I'm originally from Iowa.  It took a long
time for me to realize
	 we were free to go" -- Jake Johannsen.


_______________________________________________
Net-z3950 mailing list
Net-z3950lists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/n
et-z3950
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )