Re: [PHP] Malformed UTF-8 Data in JSON [SOLVED]

2010-07-14 Thread Benjamin Hawkes-Lewis
On 15 Jul 2010, at 04:12, Dave M G wrote: > Yes, stripslashes() was the problem. I've removed it and the code works. > > However, it seems that when I send JSON data from a Javascript file, > stripslashes() is necessary. That's why I had it there. I'm not entirely sure > what's going on there, s

Re: [PHP] How to alter the schema of a database to introduce new features or change the current features

2010-07-14 Thread Paul M Foster
On Wed, Jul 14, 2010 at 09:28:53PM -0700, Slith One wrote: > I'm developing an app using Zend Framwork using Git for version control. > > What is the best approach for updating the schema and the database > when one of us makes an update to the db structure? > > currently, we have to blow out th

[PHP] How to alter the schema of a database to introduce new features or change the current features

2010-07-14 Thread Slith One
I'm developing an app using Zend Framwork using Git for version control. What is the best approach for updating the schema and the database when one of us makes an update to the db structure? currently, we have to blow out the tables and recreate them manually to reflect the new updates. -- PHP

Re: [PHP] Malformed UTF-8 Data in JSON [SOLVED]

2010-07-14 Thread Dave M G
Jim, Thank you for responding. Yes, stripslashes() was the problem. I've removed it and the code works. However, it seems that when I send JSON data from a Javascript file, stripslashes() is necessary. That's why I had it there. I'm not entirely sure what's going on there, so obviously more e

Re: [PHP] Static Class Member References

2010-07-14 Thread Daniel Kolbo
David Harkness wrote: > Ah, so assigning a reference to a variable already holding a reference > changes that variable's reference only in the same way that unsetting a > reference doesn't unset the other variables referencing the same thing, yes? > > $a = 5; > $b = &$a; > print $a; >> 5 > unset

Re: [PHP] Malformed UTF-8 Data in JSON

2010-07-14 Thread Jim Lucas
Dave M G wrote: > PHP Users, > > I'm decoding some JSON data in PHP to convert it into an array. > > However, it's not working, and json_last_error() is returning a value of > "4", which I believe means "Malformed UTF-8 characters, possibly > incorrectly encoded". > > I try at every turn in ever

[PHP] Malformed UTF-8 Data in JSON

2010-07-14 Thread Dave M G
PHP Users, I'm decoding some JSON data in PHP to convert it into an array. However, it's not working, and json_last_error() is returning a value of "4", which I believe means "Malformed UTF-8 characters, possibly incorrectly encoded". I try at every turn in every setting to ensure that all m

RE: [PHP] updating a database

2010-07-14 Thread Tommy Pham
> -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: Wednesday, July 14, 2010 11:29 AM > To: Bob McConnell > Cc: David Mehler; php-general > Subject: RE: [PHP] updating a database > > On Wed, 2010-07-14 at 10:29 -0400, Bob McConnell wrote: > > > From: Da

Re: [PHP] Static Class Member References

2010-07-14 Thread David Harkness
Ah, so assigning a reference to a variable already holding a reference changes that variable's reference only in the same way that unsetting a reference doesn't unset the other variables referencing the same thing, yes? $a = 5; $b = &$a; print $a; > 5 unset($b); // does not affect $a print $a; >

[PHP] Problem when adding special characters to an XML file

2010-07-14 Thread te0t3l
Hi, I'm editing an XML file through a form: $XML = new DOMDocument('1.0', 'UTF-8'); $XML->preserveWhiteSpace = false; $XML->load("../xml/exposiciones.xml"); $raiz = $XML->documentElement; $nodoContenedor = $XML->getElementsByTagName('texto'); foreach ($nodoContenedor as $NuevoNodo)

RE: [PHP] updating a database

2010-07-14 Thread Ashley Sheridan
On Wed, 2010-07-14 at 10:29 -0400, Bob McConnell wrote: > From: David Mehler > > > What i'm trying to do certainly doesn't seem hard conceptually, but > > coding it has been rough. I'm wondering if anyone has anything > > similar. > > I've got a database with records. The first time the page is a

RE: [PHP] updating a database

2010-07-14 Thread Bob McConnell
From: David Mehler > What i'm trying to do certainly doesn't seem hard conceptually, but > coding it has been rough. I'm wondering if anyone has anything > similar. > I've got a database with records. The first time the page is accessed > the submit button won't be selected, so display information

Re: [PHP] updating a database

2010-07-14 Thread Bastien Koert
On Wed, Jul 14, 2010 at 9:59 AM, David Mehler wrote: > Hello, > What i'm trying to do certainly doesn't seem hard conceptually, but > coding it has been rough. I'm wondering if anyone has anything > similar. > I've got a database with records. The first time the page is accessed > the submit butto

[PHP] updating a database

2010-07-14 Thread David Mehler
Hello, What i'm trying to do certainly doesn't seem hard conceptually, but coding it has been rough. I'm wondering if anyone has anything similar. I've got a database with records. The first time the page is accessed the submit button won't be selected, so display information about the record with

Re: [PHP] Posting values of dynamically generated text fields at a time

2010-07-14 Thread Saravanan Murugesan
Regards, Saravanan Murugesan Sr. Media Developer Hurix Systems Pvt. Ltd New No.34 / Old No.10, Taylors Road, Kilpauk, Chennai 600010. INDIA Phone: +91-044-42284888 ext.852 Mobile: +91-9940295951 - Original Message - From: "Ashley Sheridan" To

RE: [PHP] Static Class Member References

2010-07-14 Thread Ford, Mike
> -Original Message- > From: Daniel Kolbo [mailto:kolb0...@umn.edu] > Sent: 11 July 2010 23:19 > > Hello PHPers, > > I'm having some trouble understanding some PHP behaviour. The > following > example script exhibits the behaviour which I cannot understand. I'm pretty sure that this is

Re: [PHP] Posting values of dynamically generated text fields at a time

2010-07-14 Thread Ashley Sheridan
On Wed, 2010-07-14 at 12:08 +0530, Saravanan Murugesan wrote: > > Hi is anybody there to help me out on this? > > > >> > >> Hi all, > >> I am new to PHP and JS. > >> > >> I am adding new text fields using javascript and I have to save the > >> values > >> of these fields in database in single