Haydar TUNA wrote:
You can use following example:)
?php
$xml = simplexml_load_file(test.xml);
$xml-body[0]-addChild(book, Atat�rk The Rebirth Of A Nation);
?
This doesn't work.
It allows to add a child with some text, as in your example.
But it doesn't allow you to add a
Jochem Maas wrote:
there is this:
http://php.net/manual/en/function.simplexml-element-addChild.php
which will allow adding of string data (so you won't be needing to
create the new SimpleXMLElement object as per your example below).
obviously you will have to first load tghe complete
Hello,
You can use following example:)
?php
$xml = simplexml_load_file(test.xml);
$xml-body[0]-addChild(book, Atatürk The Rebirth Of A Nation);
?
Republic Of Turkey - Ministry of National Education
Education Technology Department Ankara / TURKEY
Web: http://www.haydartuna.net
Hi Lab,
I normally use code of the following format, which I think is quite neat:
//Note that you do not need curely brackets in an if statement is there is
only one line
if ($_SERVER['REQUEST_METHOD'] == 'POST')
$add = $HTTP_POST_VARS['textbox'];
if ($add == 'Hello')
do something
I have a site with all my movies and stuff stored in a database. And I have
made a admin page where I can add, delete and update records. When I add new
records, I have made a listbox for the category (ex. action, comedy etc.) so
I dont have to write it every time I add a new record. But when I
Try http://www.idocs.com/tags/forms/ http://www.idocs.com/tags/forms/
Also (as the definitive reference for html) http://www.w3.org/MarkUp/
http://www.w3.org/MarkUp/
Once you've got html forms working okay, then the fields you've named in
your form are available as variables in the php page
strip_slashes()
--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com
PHP KISGB v2.6 Guest Book http://www.gaylenandmargie.com/phpwebsite
Tom Ray [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have a quick question that I haven't been able to find
oh no, Iv'e gotten two answers...
stripslashes() and strip_slashes()
which one? which one?! G
Gaylen Fraley wrote:
strip_slashes()
--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com
PHP KISGB v2.6 Guest Book http://www.gaylenandmargie.com/phpwebsite
Tom Ray [EMAIL PROTECTED]
Gaylen is prob right - I didn't check me syntax :(
-Original Message-
From: Tom Ray [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 3:11 PM
To: Gaylen Fraley
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Simple Question
oh no, Iv'e gotten two answers...
stripslashes
stripslashes()
Rio :-)
- Original Message -
From: Tom Ray [EMAIL PROTECTED]
To: Gaylen Fraley [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 11:10 AM
Subject: Re: [PHP] Re: Simple Question
oh no, Iv'e gotten two answers...
stripslashes
is prob right - I didn't check me syntax :(
-Original Message-
From: Tom Ray [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 3:11 PM
To: Gaylen Fraley
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Simple Question
oh no, Iv'e gotten two answers...
stripslashes() and strip
you look at the docs or did you do it the trail-and-error way?
-Original Message-
From: Gaylen Fraley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 3:22 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Simple Question
Nope. fatfingered :) stripslashes() is correct
PROTECTED]
Sent: Wednesday, December 12, 2001 10:56 PM
Subject: RE: [PHP] Re: Simple Question
you look at the docs or did you do it the trail-and-error way?
-Original Message-
From: Gaylen Fraley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 3:22 PM
: Re: [PHP] Re: Simple Question
To be honest, the book PHP4 Developer's Guide by Blake Schwendiman has it
listed as strip_slashes(). I just happened to be reading it when I saw the
original message and copied it as it's listed in the index. So, rather than
blaming him, I took the blame :). I
hello,
I don't know how for I got your problem but, If you trying to
print a string like this
eg : print This is Tom's book;
In the above case you need not use a back slash to escape the single quote
coz' php accepts single quote's within a double quote.
Otherwise you
do a header re-direct.
header(Location: http://domain.com/page.php;);
include any variables you want, inc session vars if needed.
--
Chris Lee
[EMAIL PROTECTED]
Andrew Forgue [EMAIL PROTECTED] wrote in message
Your form returns the date as an empty string which is an invalid date.
MySQL sets all invalid dates to -00-00. There is a big difference
between an empty string and NULL. If you want to insert NULL into the MySQL
date field you will need to insert /0 which is the escape sequence for
NULL.
Checkdate is the solution for that:
checkdate (int month, int day, int year)
Ker Ruben Ramos [EMAIL PROTECTED] schreef in berichtnieuws
00f801c14251$5aa288b0$[EMAIL PROTECTED]
ey guys.. how do i check if the postdata is a valid time format? something
like '2001-09-15'
I hate it when they'll
18 matches
Mail list logo