RE: [PHP] string problem

2006-07-10 Thread Jay Blanchard
[snip] I have the SQL statement which store in $str variable as shown below : How to get the '%WS-X5225R%' from $str variable ? $str = " SELECT DISTINCT(tbl_chassis.serial_no),tbl_card.card_model, "; "tbl_chassis.host_name,tbl_chassis.chasis_model,tbl_chassis.country,"; "tbl_chassis.city,tb

Re: [PHP] String problem

2001-02-19 Thread Richard Lynch
I'm not sure why/when PHP doesn't like embedded [[]] but it doesn't sometimes (always?). You'll need to use a temp variable for $keys[1] and $keys[0] to put into $HTTP_POST_VARS. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/arti

Re: [PHP] String problem

2001-02-19 Thread CC Zona
In article <96s2sj$46a$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Mike") wrote: > I get this error Parse error: parse error, expecting `']'' in > /on this. > > $Q= "Update $HTTP_POST_VARS[$keys[1]] Set $updateString Where $keys[0] > =$HTTP_POST_VARS[$keys[0]]"; Try: $Q= "Update $HTTP_