www.webdeveloper.com
Results 1 to 4 of 4

Thread: Whats wrong with this very simple script

  1. #1

    Question Whats wrong with this very simple script

    Whats wrong with this script I just want it to show a rondom one?
    PHP Code:
    <?php
    $number 
    rand(120)
    echo 
    "<applet codebase="http://s2.liveseex.net/frames/" code="lsl08" width="284" height="212"><param name="po" value="1"><param name="channel" value="$number"></applet>"

    ?>

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    You need to excape your inner quotation marks, or change them to single quotes. Also, all lines need to end with semicolons

    PHP Code:
    <?php
    $number 
    rand(120);
    echo 
    "<applet codebase=\"http://s2.liveseex.net/frames/\" code=\"lsl08\" width=\"284\" height=\"212\"><param name=\"po\" value=\"1\"><param name=\"channel\" value=\"$number\"></applet>";
    ?>

  3. #3
    Thanks pyro YOURE THE MAN!!!!

  4. #4
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    You're welcome...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles