[PHP] Re: Simple question on simplexml

2007-04-09 Thread Timothy Murphy
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

[PHP] Re: Simple question on simplexml

2007-04-09 Thread Timothy Murphy
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

[PHP] Re: Simple question on simplexml

2007-04-07 Thread Haydar TUNA
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

[PHP] Re: Simple question

2003-12-28 Thread Andy Higgins
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

[PHP] Re: Simple question I guess.

2002-07-23 Thread Richard Lynch
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

[PHP] RE: simple question

2002-04-03 Thread Tim Ward
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

[PHP] Re: Simple Question

2001-12-12 Thread Gaylen Fraley
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

Re: [PHP] Re: Simple Question

2001-12-12 Thread Tom Ray
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]

RE: [PHP] Re: Simple Question

2001-12-12 Thread Martin Towell
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

Re: [PHP] Re: Simple Question

2001-12-12 Thread Rio Uniwaly
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

Re: [PHP] Re: Simple Question

2001-12-12 Thread Gaylen Fraley
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

RE: [PHP] Re: Simple Question

2001-12-12 Thread Martin Towell
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

Re: [PHP] Re: Simple Question

2001-12-12 Thread Gaylen
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

2001-12-12 Thread Martin Towell
: 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

Re: [PHP] Re: Simple Question

2001-12-12 Thread J.F.Kishor
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

[PHP] Re: Simple(?) Question

2001-12-05 Thread Chris Lee
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

[PHP] Re: Simple Question: PHP, MySQL, HTML Form and NULL

2001-12-04 Thread Fred
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.

[PHP] Re: simple question...

2001-09-20 Thread Emile Bosch
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