On 21 Jul 2010, at 19:32, Ben Miller wrote:
Problem:
If street2 (or any other field) has no value, PHP is outputting the XML node
as street2 /, which is producing a JS error when I try to call:
script type=text/javascript..
street2 =
Hullo!
I'm having a pig of a time trying to figure this one out: I have an
XHTML document which I've loaded into a DOMDocument because I want to
add more tags to it. However, since I live in a bilingual country, I
want to get the document's xml:lang attribute so I know what language
to add my
I have an XML document as a string $strXml, that looks a little like this:
recordset
row
userid1/userid
usernameBob/username
passwordRover/username
/row
row
userid2/userid
usernameFred/username
passwordFido/username
/row
/recordset
Ian Williams wrote:
I have an XML document as a string $strXml, that looks a little like this:
recordset
row
userid1/userid
usernameBob/username
passwordRover/username
/row
row
userid2/userid
usernameFred/username
passwordFido/username
?php
header(Content-Type: application/xml);
//query database records
$connection = mysql_connect(localhost, user, pass) or die(can't connect);
mysql_select_db(webbish);
$query = SELECT id, title, artist FROM xmldb;
$result = mysql_query($query);
if(mysql_num_rows($result) 0){
Hi,
Friday, October 4, 2002, 10:14:31 PM, you wrote:
DÖJ ?php
DÖJ header(Content-Type: application/xml);
DÖJ //query database records
DÖJ $connection = mysql_connect(localhost, user, pass) or die(can't connect);
DÖJ mysql_select_db(webbish);
DÖJ $query = SELECT id, title, artist FROM
Hi,
Untested but it would be something like this:
?php
header(Content-Type: application/xml);
//query database records
$connection = mysql_connect(localhost, user, pass) or die(can't connect);
mysql_select_db(webbish);
$query = SELECT id, title, artist FROM xmldb;
$result =
hi,
I am running PHPtriad on a win2k machine... when I run phpinfo() it
displays XMLACTIVE but I keep getting an error Fatal error: Call to
undefined function: xmldoc() in C:\apache\htdocs\example.php on line 24
What needs to installed/configured ??
TIA,
sandeep
--
PHP General
Sandeep Murphy wrote:
hi,
I am running PHPtriad on a win2k machine... when I run phpinfo() it
displays XMLACTIVE
this means that the standart, expat based xml support ist active
but I keep getting an error Fatal error: Call to
undefined function: xmldoc() in
hi ;)
Recently I've been using the DOM module of php and I have
encountered a few problems. I am working on a quite advanced XML application
and I am forced to use the PHP technology.
I need to dynamically create XML documents. There's no problem with that
when i simply use this statement:
$doc
hi ;)
Recently I've been using the DOM module of php and I have
encountered a few problems. I am working on a quite advanced XML application
and I am forced to use the PHP technology.
I need to dynamically create XML documents. There's no problem with that
when i simply use this statement:
$doc
hello
I'm trying to parse and change a loaded xml-file using the DOM module.
I need to remove certain nodes and append new ones.
Is it really true that you can't remove a childnode
while working with dom.
in perl this would look somehow like this:
$doc1-removeChild($tmpele);
12 matches
Mail list logo