You are here: Re: problem with spaces « PHP Programming Language « IT news, forums, messages
Re: problem with spaces

Posted by Dave on 07/11/05 13:13

(jfranchino0000@yahoo.com) decided we needed to hear...
> this is the code:
> print("change_text(\"english\",\"$myrow[word_english]\")>");
>
> change_text(id,text) is a javascript function that changes some of the
> text on the page to something else. $myrow[word_english] returns a
> field from an entry in a mySQL database.
>
> this works fine, rendering html like this:
> change_text("english","green")>
>
> unless $myrow[word_english] has a space in it, then I get this:
> change_text("english","dark blue)>
>
> what am I missing?
> Thanks in advance! -jf

Maybe this is a bug in the PHP version you're using?
Your code works exactly as expected for me (PHPEd bundled PHP 4.3.4)
--
Dave <dave@REMOVEbundook.com>
(Remove REMOVE for email address)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация