perezf Posted May 31, 2006 Share Posted May 31, 2006 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=PlayVideosand 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] Quote Link to comment https://forums.phpfreaks.com/topic/10822-cases/ Share on other sites More sharing options...
KrisNz Posted May 31, 2006 Share Posted May 31, 2006 [!--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=PlayVideosand 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. Quote Link to comment https://forums.phpfreaks.com/topic/10822-cases/#findComment-40448 Share on other sites More sharing options...
perezf Posted May 31, 2006 Author Share Posted May 31, 2006 I tried that but it wont seem to play the videoheres 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] Quote Link to comment https://forums.phpfreaks.com/topic/10822-cases/#findComment-40451 Share on other sites More sharing options...
perezf Posted May 31, 2006 Author Share Posted May 31, 2006 I need help Quote Link to comment https://forums.phpfreaks.com/topic/10822-cases/#findComment-40540 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.