[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 com

[PHP] Re: Simple question on simplexml

2007-04-09 Thread Timothy Murphy
Haydar TUNA wrote: > You can use following example:) > >$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 ad

[PHP] Re: Simple question on simplexml

2007-04-07 Thread Haydar TUNA
Hello, You can use following example:) 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 "Timothy Murphy" <[EMAIL PROTECTED]>, haber iletisin

[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

[PHP] RE: simple question

2002-04-03 Thread Tim Ward
Try http://www.idocs.com/tags/forms/ Also (as the definitive reference for html) http://www.w3.org/MarkUp/ Once you've got html forms working okay, then the fields you've "name"d in your form are available as variables in the php p

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

RE: [PHP] Re: Simple Question

2001-12-12 Thread Martin Towell
D] Subject: 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 t

Re: [PHP] Re: Simple Question

2001-12-12 Thread Gaylen
len Fraley' ; [EMAIL 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, Decemb

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 Fraley
ROTECTED]... > 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 >

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.

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... stripsla

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?! 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 PRO

[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 fi

[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 001d01c17ddc$a898fc40$6701a8c0@ajf">news:001d01c17ddc$a898fc40$6701a8c0@

[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 NU

[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'