[PHP] string problem

2006-07-10 Thread weetat
Hi all , I am using PHP 4.3.2 , MYSQL database and Red Hat Entreprise OS. 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, ;

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,;

[PHP] String problem

2001-02-19 Thread Mike
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]]"; all my brackets are closed [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

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