Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP FAQs
|
PHP FAQs This moderated forum is where our PHP experts answer some of the questions they see asked most frequently in the other PHP forums. You cannot post other messages here, use the other PHP forums for that.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP FAQs section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 19th, 2006, 11:47 PM
Registered User
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem of inverted comma

In my php page I want to use jvascript like this
<script type="text/jvascript">
function deiplay(str)
{
   alert(str);
}
<script>

<?php
   $string="Soman's ";

    echo "<script> deiplay('Company Name: $string' )";
?>
In my program $string value come from database. Then it give jvascript error. I can use Double inverted comma("). Problem is If Double inverted comma in database it will give problem. How can I solve this problem? Please tel me If you know.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel and Notepad: how avoid additional inverted.. ghisirds Excel VBA 2 September 11th, 2007 05:11 PM
HELP!!: Sorting multiple selection AND inverted aefavant Excel VBA 0 June 6th, 2006 03:58 PM
How do I get rid of this comma?!?!?!?! tsindos Classic ASP Databases 10 February 16th, 2006 12:55 AM
inverted comma problems in ASP response.write paulmcn Classic ASP Basics 2 September 16th, 2005 04:52 AM
comma problem! Ashleek007 Beginning PHP 2 April 17th, 2005 04:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.