RE: [PHP] problem with urlencode

2001-11-29 Thread Zozulak Peter

definitely you need  to be replaced with amp; ... 

it will work ...

Peter
 -Original Message-
 From: Oosten, Sjoerd van [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, November 29, 2001 10:45 AM
 To: '[EMAIL PROTECTED]'
 Subject: [PHP] problem with urlencode
 
 
 Hi there,
  
 I have a problem putting through a variable which contains an  in the
 string.
 When the variabele is something like: 
 a href=test.php?name=robsjoerdclick here/a
  
 the next file sees $name as rob instead of $name=rob  sjoerd
  
 i've tried the urlencode function but that doesn't work.
  
 Somebody,
  
 thanks 
 
 
 Sjoerd van Oosten 
 Digitaal vormgever [EMAIL PROTECTED]
 Datamex E-sites B.V. 
 http://www.esites.nl
 Minervum 7368 Telefoon: (076) 5 730 730 
 4817 ZH BREDA Telefax: (076) 5 877 757 
 ___
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: 
 [EMAIL PROTECTED]
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Re: database question

2001-11-29 Thread Zozulak Peter

and what about this ...

$sql = SELECT a_column FROM table WHERE text_column LIKE '% $word %';

matching the word in the text ...

$sql = SELECT a_column FROM table WHERE text_column LIKE '$word %';

matching the word at the begining of the text ...

$sql = SELECT a_column FROM table WHERE text_column LIKE '% $word';

matching the word at the end of the text ...

 
  $word = 'bingo';
  $sql = SELECT a_column FROM table WHERE text_column LIKE '%$word%';
  $res = mysql_query($sql);
  // etc... for displaying results


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]