PHP and the QueryExample.php
Friday, 9 July 2010 · 2 messages
J
johanna.vompras9 Jul 2010 16:05 #
Hi all,
I was testing the PHP examples on your website ( https://svn.uni-konstanz.de/dbis/basex/trunk/api/etc/php/ ), but I get the following results after executing the QueryExample.php (the query string is: $input = "for $i in 1 to 10 return <xml>Text { $i }</xml>";):
This is the output:
"instead of 1 commands received."
The basex server is running, the access to the server seems to work. I can type the query in the basex-api and it works! Through PHP no query is executed and no results are returned.
Can someone help me? Have I overseen something? Should I specify the database (e.g. factbook.xml, and how?)?
AW
Andreas Weiler9 Jul 2010 16:28 #
Hi Johanna,
thank you.
Sorry for that, the $input string was with the wrong quotation marks. (cause of the $ in the string)
<ende?lp=ende&p=Ci4HO3kMAA&search=mark&trestr=0x8001>
I uploaded the solved example to the repository.
Kind regards,
Andreas
Quoted text · johanna.vompras · 16 lines
johanna.vompras at uni-bielefeld.de schrieb: > Hi all, > > I was testing the PHP examples on your website ( https://svn.uni-konstanz.de/dbis/basex/trunk/api/etc/php/ ), but I get the following results after executing the QueryExample.php (the query string is: $input = "for $i in 1 to 10 return <xml>Text { $i }</xml>";): > > This is the output: > "instead of 1 commands received." > > The basex server is running, the access to the server seems to work. I can type the query in the basex-api and it works! Through PHP no query is executed and no results are returned. > > Can someone help me? Have I overseen something? Should I specify the database (e.g. factbook.xml, and how?)? > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
Written for BaseX 6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery