Jump to content

Archived

This topic is now archived and is closed to further replies.

perezf

cases

Recommended Posts

I needed to know what was wrong with this part of code that i have
[code]
$link_href = 'http://www.2fr3sh.com/index.php?page=PlayVideos=Item?id='.stripslashes($table_data['id']);
[/code]

i need both the ?page=PlayVideos
and also the
?id='.stripslashes($table_data['id']);

what im trying to do is instead of the page address looking like this

[a href=\"http://2fr3sh.com/pages/play1.php?id=**\" target=\"_blank\"]http://2fr3sh.com/pages/play1.php?id=**[/a]

I want it to look like

[a href=\"http://www.2fr3sh.com/index.php?page=PlayVideos=Item?id=381\" target=\"_blank\"]http://www.2fr3sh.com/index.php?page=PlayVideos=Item?id=**[/a]

Share this post


Link to post
Share on other sites
[!--quoteo(post=378591:date=May 31 2006, 02:51 PM:name=perezf)--][div class=\'quotetop\']QUOTE(perezf @ May 31 2006, 02:51 PM) [snapback]378591[/snapback][/div][div class=\'quotemain\'][!--quotec--]
I needed to know what was wrong with this part of code that i have
[code]
$link_href = 'http://www.2fr3sh.com/index.php?page=PlayVideos=Item?id='.stripslashes($table_data['id']);
[/code]

i need both the ?page=PlayVideos
and also the
?id='.stripslashes($table_data['id']);
[/quote]

change it to
[code]
$link_href = 'http://www.2fr3sh.com/index.php?page=PlayVideos&id='.stripslashes($table_data['id']);
[/code]
the "=item" bit either needs to be removed or changed to [code]&item=something[/code]
Also, assuming id is an integer you dont need to call stripslashes on it.

Share this post


Link to post
Share on other sites
I tried that but it wont seem to play the video

heres a piece of the code on the index.php
[code]
case "PlayVideos": include 'pages/play1.php';
break;
case "videos": include 'pages/funnyvideos.page';
break;[/code]

now i want it to show the case "PlayVideos" and the "id" number from the database

[code]
$link_href = 'http://www.2fr3sh.com/index.php?page=PlayVideos=Item?id='.stripslashes($table_data['id']);
[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.