开发者

PHP: Trying to gt a part of url to INTO PHP

开发者 https://www.devze.com 2023-04-10 13:01 出处:网络
Okay so 开发者_StackOverflowI have my PHP code: (I need help with the 4th line) More info down below the code.

Okay so 开发者_StackOverflowI have my PHP code: (I need help with the 4th line) More info down below the code.

Basicly I am trying to get code below. i am trying to put get part of url but it doesn;'t work

$oIMDB = new IMDB('<?ph p echo$_GET("m");?> ')

and on the 4th line i put the code and the code doesn't work, how can i use it?


I think you mean this:

$oIMDB = new IMDB($_GET["m"]);


you shouldn't need the php scripting block inside the class call. Function parameters don't need quotes either unless you are using a literal string. Try

$oIMDB = new IMDB($_GET["m"])
0

精彩评论

暂无评论...
验证码 换一张
取 消