Hi there,
I am fairly new to php so I am trying to get to grips with this.
I have a web page that show's video's. I built a custom player in Flash and the recordset variables are based on repeated regions from MySQL and load back into Flash
See - www.northstjarna.com/Media/Video
However my friend who owns Tequila Town wants to put some hyperlinks onto his page to jump to the recordset of the Video named "x"
This works but a) You have to guess that it's gonna be the correct video and b) If you change the recordsets in the DB the hyperlink would mess up
<a href="http://www.northstjarna.com/Media/Video/index.php?pageNum_Movies=1">A link to a Video where Recordset page=1</a>
I am trying to write a variable into my SQL statement which handles the QRY
So was trying this
$vidvar = $variable_from_hyperlink
mysql_select_db($database_northstjarna, $northstjarna);
$query_Movies = "SELECT MovieTitle, MovieDescription, MovieRL, MovieURLText, Year, Reference FROM Movies WHERE Movies.MovieTitle = '$vidvars'";
$Movies = mysql_query($query_Movies, $northstjarna) or die(mysql_error());
$row_Movies = mysql_fetch_assoc($Movies);
$totalRows_Movies = mysql_num_rows($Movies);
I have to tell it to filter rather than go to the page. So maybe the URL would be
<a href="http://www.northstjarna.com/Media/Video/index.php?MovieTitle=<?php echo $row_Movies['MovieTitle']; ?>'The Hawaiian Party'">A link to a Video where Title =The Hawaiian Party</a>
Or
<a href="http://www.northstjarna.com/Media/Video/index.php" Name="variable_from_hyperlink">A link to a Video where Title =The Hawaiian Party</a>
I am on the right track and is something so simple... but then again it's late and I am not thinking so straight.
Any help is much appreciated.
Thanks
Andi