Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    England
    Posts
    172
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow Problem with this..

    PHP Code:
    $piconeloc "blah.jpg";
    $piconew "250";
    $piconeh "150";
    $piconealt "blah blah";

    $desc str_replace("*picone*""<img src=\"/images/$piconeloc\" width=\"$piconew\" height=\"$piconeh\" alt=\"$piconealt\" align=\"right\" border=\"0\">""$desc");

    echo 
    "$desc"
    This just echoes:

    <img src="/images/" width="" height="" alt="" align="right" border="0">
    Why isn't it including the info in the $'s? They definately exist.
    \o/

  • #2
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try:
    PHP Code:
    $piconeloc 'blah.jpg';
    $piconew '250';
    $piconeh '150';
    $piconealt 'blah blah';

    $desc str_replace('*picone*''<img src="/images/' $piconeloc '" width="' $piconew '" height="' $piconeh '" alt="' $piconealt .'" align="right" border="0" />'$desc); 
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

  • #3
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Try reading our POSTING GUIDELINES sometime
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    England
    Posts
    172
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well how about being sa bit more constructive and try to suggest a subject title that could have been used? I can't think of one.

    Do you not take into account the fact that some people are not that good at asking questions or thinking up complicated subject titles?
    \o/

  • #5
    Senior Coder
    Join Date
    Aug 2003
    Location
    One step ahead of you.
    Posts
    2,815
    Thanks
    0
    Thanked 3 Times in 3 Posts
    If we would take that into account you will have to take in account that you will get now anwser.

    You are the one that want's something not us.

  • #6
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Quote Originally Posted by Richard
    Well how about being sa bit more constructive and try to suggest a subject title that could have been used? I can't think of one.

    Do you not take into account the fact that some people are not that good at asking questions or thinking up complicated subject titles?
    Complicated?

    Subject: PHP echo problems

    That didn't seem too complicated to me.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #7
    Regular Coder trib4lmaniac's Avatar
    Join Date
    Feb 2004
    Location
    Cornwall, UK
    Posts
    535
    Thanks
    0
    Thanked 0 Times in 0 Posts
    But... did it fix it? I take it it did, 'cos you don't seem too bothered about it anymore.

  • #8
    Regular Coder
    Join Date
    Jun 2002
    Location
    England
    Posts
    172
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by trib4lmaniac
    But... did it fix it? I take it it did, 'cos you don't seem too bothered about it anymore.
    Yes thank you it's fine now.

    btw spookster it was a str_replace problem, and it is a php forum so no need to put php in the subject eh :P
    \o/

  • #9
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Quote Originally Posted by Richard
    Yes thank you it's fine now.

    btw spookster it was a str_replace problem, and it is a php forum so no need to put php in the subject eh :P
    The easiest way to come up with a proper subject is to type in your question or code and then look through that for keywords or code statements. "Problem with str_replace" or "str_replace not working" would have been just fine as a subject line. The more specific the better. The reason we stress proper subject lines is because when people use our search feature and come up with a list of 50 results they will want to be able to sift through the subject lines of the results without having to open each and every thread to see if the thread is related to their problem.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #10
    Regular Coder trib4lmaniac's Avatar
    Join Date
    Feb 2004
    Location
    Cornwall, UK
    Posts
    535
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I would have called it "str_replace not replacing" or something similar

  • #11
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i would have called it:

    "embedded values not showing in doublequoted string used in str_replace()"
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

  • #12
    Regular Coder trib4lmaniac's Avatar
    Join Date
    Feb 2004
    Location
    Cornwall, UK
    Posts
    535
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by raf
    i would have called it:

    "embedded values not showing in doublequoted string used in str_replace()"
    Right... bit long winded for me. Each to there own though

  • #13
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i already trimmed it down from

    "terrible codingproblem with embedded variables' values that are not showing in doublequoted string that serves as the replacevalue in the str_replace() function i am using, is giving me a headache"
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

  • #14
    Regular Coder trib4lmaniac's Avatar
    Join Date
    Feb 2004
    Location
    Cornwall, UK
    Posts
    535
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by raf
    i already trimmed it down from

    "terrible codingproblem with embedded variables' values that are not showing in doublequoted string that serves as the replacevalue in the str_replace() function i am using, is giving me a headache"

  • #15
    New to the CF scene
    Join Date
    Nov 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    bad-juju
    Last edited by firepages; 11-08-2004 at 11:24 PM.


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •