Jump to content

cases


perezf

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]
Link to comment
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.
Link to comment
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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.