iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar 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.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-26-2008, 08:04 AM
edhan's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Singapore
Posts: 716
edhan RepRank 3edhan RepRank 3edhan RepRank 3
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!
Reply With Quote
  #2 (permalink)  
Old 03-26-2008, 08:13 AM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
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.
Reply With Quote
  #3 (permalink)  
Old 03-26-2008, 08:44 AM
edhan's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Singapore
Posts: 716
edhan RepRank 3edhan RepRank 3edhan RepRank 3
Default Re: How to remove double quote?

Thanks for your help. It works! Rep given.

Cheers!
Reply With Quote
  #4 (permalink)  
Old 03-26-2008, 06:26 PM
WebProWorld Pro
 
Join Date: Jan 2008
Posts: 294
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 06:41 PM. Reason: typo
Reply With Quote
  #5 (permalink)  
Old 03-27-2008, 11:17 AM
edhan's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Singapore
Posts: 716
edhan RepRank 3edhan RepRank 3edhan RepRank 3
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.
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

BB 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 01:43 PM
Quote of the ------------------------------> Day 5th Jan JuniorOnline The Castle Breakroom (General: Any Topic) 1 01-05-2006 04:17 AM
www.find-a-quote.com panther Submit Your Site For Review 2 12-15-2005 05:22 AM
double website files - double content JuniorOnline Search Engine Optimization Forum 2 08-09-2005 11:55 AM
Can I quote you on that? :) wenwilder The Castle Breakroom (General: Any Topic) 8 11-21-2003 01:57 AM


All times are GMT -4. The time now is 08:46 AM.



Search Engine Optimization by vBSEO 3.3.0