Well i was wondering how i could do this: http://runegear.net/member.php?action=profile&uid=3293
you see the member.php?action
and i want that with my site like watch?blabla
how do i do this?
thanks.
if its unclear i will try to explain it better.
so well i got this site of mine just a test site.
the code of the site is this: http://pastie.org/2106133
but where do i have to put the $_GET["action"]
I know im a noob with PHP and html :$ but just when i want the second page be named like
watch?myvideo
where do i have to put it and how xD
thanks though ^^
im really confused like i said im a dummy in PHP but will this make it like youtube?
so if i make a page named watch.php and i add in the code you said then i would get this right? www.mysite.com/watch.php?action=mynameiwantforthesite?
or am i wrong i dont really know the echo stuff either >.<
im really confused like i said im a dummy in PHP but will this make it like youtube?
so if i make a page named watch.php and i add in the code you said then i would get this right? www.mysite.com/watch.php?action=mynameiwantforthesite?
or am i wrong i dont really know the echo stuff either >.<
<?php
mysql_connect("localhost", "username", "password");
$watch = $_GET["watch"];
$query = mysql_query("SELECT * FROM videos WHERE id = '$watch';");
$rows = mysql_num_rows($query);
if ($rows == 1) {
$videourl = mysql_result($query, 0, "URL.flv");
// Embed Flash Player with Video URL here
} else {
die("More than one video recognised under this ID!");
}
?>
Of course, the main aspect seen there is the $_GET variable array. Basically, add a link that has ?watch=ID or something, and then if you echo $_GET["watch"], it would echo "ID".