Jump to content


Photo

cases


  • Please log in to reply
3 replies to this topic

#1 perezf

perezf
  • Members
  • PipPipPip
  • Advanced Member
  • 301 posts
  • LocationFort Lauderdale

Posted 31 May 2006 - 04:51 AM

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

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]

#2 KrisNz

KrisNz
  • Members
  • PipPipPip
  • Advanced Member
  • 271 posts
  • LocationAuckland, New Zealand

Posted 31 May 2006 - 04:57 AM

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

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

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

#3 perezf

perezf
  • Members
  • PipPipPip
  • Advanced Member
  • 301 posts
  • LocationFort Lauderdale

Posted 31 May 2006 - 05:09 AM

I tried that but it wont seem to play the video

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

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

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


#4 perezf

perezf
  • Members
  • PipPipPip
  • Advanced Member
  • 301 posts
  • LocationFort Lauderdale

Posted 31 May 2006 - 12:29 PM

I need help




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users