Re: [PHP] 4 hours staring - can't see clear.

2003-06-12 Thread John Taylor-Johnston
Lars, Much thanks. Life saving :) Ignatius, I like your idea. Thanks to you too. John > if (isset($var[$key]['Option'])) > { > // Flag that we got one this time round. > $found = true; > // Get the translated name from $var. > $recor

Re: [PHP] 4 hours staring - can't see clear.

2003-06-12 Thread Lars Torben Wilson
On Wed, 2003-06-11 at 21:00, John Taylor-Johnston wrote: > Lars, > > Thanks. I am getting this error however: > > Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in > > It does not like addslashes() because of the {}? What is a sensible work around? Or > do I ev

Re: [PHP] 4 hours staring - can't see clear.

2003-06-12 Thread Lang Sharpe
You can't embed function calls in strings like this $sString = "{addslashes($blah)},{addslashes($blah)}"; you have to go $sString = addslashes($blah) . ',' . addslashes($blah); Lang John Taylor-Johnston wrote: > Lars, > > Thanks. I am getting this error however: > > Parse error: parse error,

Re: [PHP] 4 hours staring - can't see clear.

2003-06-11 Thread John Taylor-Johnston
Lars, Thanks. I am getting this error however: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in It does not like addslashes() because of the {}? What is a sensible work around? Or do I even need addslashes?? if ($found) { $sql = "INSERT INTO $dbtable (RNu

Re: [PHP] 4 hours staring - can't see clear.

2003-06-11 Thread Lars Torben Wilson
On Wed, 2003-06-11 at 15:55, jtjohnston wrote: > Can someone see clearly through what I'm trying to do please? > I've been at this for 4 hours trying to see where I have gone wrong. [snipped] Might something like this work? array ( 'Description' => 'Title: (TI)', 'Option' => 'ST', ),

[PHP] 4 hours staring - can't see clear.

2003-06-11 Thread jtjohnston
Can someone see clearly through what I'm trying to do please? I've been at this for 4 hours trying to see where I have gone wrong. # contents of a text file # Enregistrement TI: ... So They Understand ...: Cultural Issues AU: Schneider,-William PB: Logan, UT : Utah