WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-26-2008, 07:04 AM
edhan's Avatar
edhan edhan is offline
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Singapore
Posts: 509
edhan RepRank 1
Question How to remove double quote?

Hi

Hope this is the correct forum to write. If not, kindly redirect the right section.

I have this problem of removing the double quote. Here is an example.

$movie = http://domain.com/asjierek"

The $movie will provide different source dynamically. This means the next time, it can show as:

$movie = http://domain.com/dskeijkl"

My problem is how to remove the double quote at the end.

I tried doing this:

$characters_to_remove = array('"');
$replace_with = array('');
$movie = str_replace($characters_to_remove,$replace_with,$r ow['movie']);

But it turns out blank when I echo $movie

As I am not good for programming, any help or advice is greatly appreciated.

Thanks!
__________________
Receiving & Giving To Society
Thai Buddha Amulets & Tibetan dZi Beads | Ads Revenue Sharing | Shopping Online
Reply With Quote
  #2 (permalink)  
Old 03-26-2008, 07:13 AM
speed speed is offline
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Cornwall, UK
Posts: 824
speed RepRank 1
Default Re: How to remove double quote?

if $row['movie'] holds the string http://domain.com/asjierek" then to remove all "

$movie = str_replace('"', '', $row['movie']);

If that doesn't work then what is the contents of $row['movie'], you can do echo $row['movie']; to print it on the browser.
__________________
TOLRA Micro Systems Limited US & UK Web Hosting with Continuous Data Protection
Web Directory : Web Directory Script
Reply With Quote
  #3 (permalink)  
Old 03-26-2008, 07:44 AM
edhan's Avatar
edhan edhan is offline
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Singapore
Posts: 509
edhan RepRank 1
Default Re: How to remove double quote?

Thanks for your help. It works! Rep given.

Cheers!
__________________
Receiving & Giving To Society
Thai Buddha Amulets & Tibetan dZi Beads | Ads Revenue Sharing | Shopping Online
Reply With Quote
  #4 (permalink)  
Old 03-26-2008, 05:26 PM
Tech Manager Tech Manager is offline
WebProWorld Pro
 

Join Date: Jan 2008
Posts: 254
Tech Manager RepRank 1
Default Re: How to remove double quote?

Is this being stored in a database? If so, why the need for the Double Quote? You can just as easily store the url without the quotes (in fact it's cleaner).
__________________
I use Country IP Blocks as added security for my networks and servers.

Last edited by Tech Manager : 03-26-2008 at 05:41 PM. Reason: typo
Reply With Quote
  #5 (permalink)  
Old 03-27-2008, 10:17 AM
edhan's Avatar
edhan edhan is offline
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Singapore
Posts: 509
edhan RepRank 1
Default Re: How to remove double quote?

Yes. It is stored in database. But it is a bunch of texts including the url instead of just that.

Thanks anyway as it has been resolved.
__________________
Receiving & Giving To Society
Thai Buddha Amulets & Tibetan dZi Beads | Ads Revenue Sharing | Shopping Online
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for quote about Google PR... kissels Google Discussion Forum 6 05-04-2006 12:43 PM
Quote of the ------------------------------> Day 5th Jan JuniorOnline Breakroom (General: Any Topic) 1 01-05-2006 03:17 AM
www.find-a-quote.com panther Submit Your Site For Review 2 12-15-2005 04:22 AM
double website files - double content JuniorOnline Search Engine Optimization Forum 2 08-09-2005 10:55 AM
Can I quote you on that? :) wenwilder Breakroom (General: Any Topic) 8 11-21-2003 12:57 AM


Search Engine Friendly URLs by vBSEO 3.0.0