Click to See Complete Forum and Search --> : Whats wrong with this very simple script


micjohnson
07-17-2003, 10:54 PM
Whats wrong with this script I just want it to show a rondom one?

<?php
$number = rand(1, 20)
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>"

?>:confused: :rolleyes: :(

pyro
07-17-2003, 10:59 PM
You need to excape your inner quotation marks, or change them to single quotes. Also, all lines need to end with semicolons

<?php
$number = rand(1, 20);
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>";
?>

micjohnson
07-17-2003, 11:00 PM
Thanks pyro YOURE THE MAN!!!!:D

pyro
07-17-2003, 11:04 PM
You're welcome... :)