a little struggle with variables and stuff!
Posted: Sun Apr 27, 2003 12:29 pm
Hi all,
I'm new to PHP (not to programming) and have a little difficulty with variables. I know PHP for 3 days now and I'm "trying" to create a dynamic website for personal use.
The problem is this:
I have a demo section wich shows shockwave movies in a table. That all works fine. I wrote this code to show the shockwave movie:
What I want is when the user clicks on a link the variable $demoFile gets updated to show the shockwave movie (to wich the link points). But I don't know how to get it to works.
Also the main PHP page has included/required all the part on the page.
require(header)
require(menu)
include(demos)
something like this. Everything runs. But I can't seem to get that friggin link to work.
Does anybody has an idea?
Thanks in advance.
I'm new to PHP (not to programming) and have a little difficulty with variables. I know PHP for 3 days now and I'm "trying" to create a dynamic website for personal use.
The problem is this:
I have a demo section wich shows shockwave movies in a table. That all works fine. I wrote this code to show the shockwave movie:
Code: Select all
class demoView
{
function demoView($demoDCR)
{
echo("
<object classid=clsid:166B1BCA-3F9C-11CF-8075-444553540000
codebase='http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,0,0'
ID=demoViewWin width=450 height=320>
<param name=src value=demos/show/"."$demoDCR".".dcr>
<param name=swStretchStyle value=fill>
</object>
");
}
}
if ($demoFile !== NULL) {
new demoView($demoFile);
}Also the main PHP page has included/required all the part on the page.
require(header)
require(menu)
include(demos)
something like this. Everything runs. But I can't seem to get that friggin link to work.
Does anybody has an idea?
Thanks in advance.