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.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2010
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to split code in two line instead of one

    Ok this is this code below, I want to split it into two sections.

    look at this code right here
    PHP Code:
    =AMZN 
    I want to make AMZN separate.

    like may be
    PHP Code:
     $stockId AMZN

    THIS IS CURRENT CODE ONE LINE
    PHP Code:
    $ret scraping_IMDB('http://www.nasdaq.com/aspx/nasdaqlastsale.aspx?symbol=AMZN&selected=AMZN'); 
    Please Help Me Split it so instead of changing stock code in whole url I can just change in like stockId...
    Hope you can help me
    Thank you

  • #2
    New Coder
    Join Date
    Aug 2010
    Location
    At home with my bunny sleepers.
    Posts
    27
    Thanks
    0
    Thanked 7 Times in 7 Posts
    Like this?

    PHP Code:
    $stockId AMZN;
    $ret scraping_IMDB("http://www.nasdaq.com/aspx/nasdaqlastsale.aspx?symbol={$stockId}&selected={$stockId}"); 
    Choose a job you love, and you will never have to work a day in your life.

    Dolrich Fortich Love to Code Using :)
    [PHP/MySql, Jquery, Codeigniter, Opencart]

  • #3
    New to the CF scene
    Join Date
    Apr 2010
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hey dude thanx man that worked.
    I was wondering if I can use this instead of AMZN

    PHP Code:
    <script language="JavaScript" type="text/javascript">{ var name prompt ('Stock Symbol',''); document.write(""+name+"") } </script> 


  •  

    Posting Permissions

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