blankextacy Posted October 22, 2006 Share Posted October 22, 2006 could some one tell me why this isnt working?[code]print "<embed src='video[link]' type='application/x-mplayer2' width='300' height='300' ShowControls='1' ShowStatusBar='0' loop='true' EnableContextMenu='0' autostart='true' DisplaySize='0' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/'></embed>";[/code] Quote Link to comment Share on other sites More sharing options...
fert Posted October 22, 2006 Share Posted October 22, 2006 try using $video[link] Quote Link to comment Share on other sites More sharing options...
blankextacy Posted October 22, 2006 Author Share Posted October 22, 2006 i tryed that but then edited it and now its this poop [code]print "<embed src=\"{$video['link']}\" type='application/x-mplayer2' width='300' height='300' ShowControls='1' ShowStatusBar='0' loop='true' EnableContextMenu='0' autostart='true' DisplaySize='0' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/'></embed>";[/code] Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted October 22, 2006 Share Posted October 22, 2006 so its working or is it getting errors? Quote Link to comment Share on other sites More sharing options...
blankextacy Posted October 22, 2006 Author Share Posted October 22, 2006 working Quote Link to comment Share on other sites More sharing options...
blankextacy Posted October 22, 2006 Author Share Posted October 22, 2006 uhh i cant find whats wrong in this code im getting Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/.mabeloven/revoonline/revo-online.net/gdmovies/submit.php on line 169 from it [code] } mysql_query(" insert into players (name, email, user, pic, link, type, submitted) values("'$name','$email','$user','$pic','$link','$type','date("m/d/Y) ') ") or die(Could not Submit.); print "You're video has been submitted.";}?>[/code] Quote Link to comment Share on other sites More sharing options...
Giddy Rob Posted October 22, 2006 Share Posted October 22, 2006 Hey,If that does't work have you thought of using a .flv movie file and progressivley downloading it from the server? It will require the use of flash but it works a treat.RegardsRobert Shillito[url=http://www.dustmonkeys.com]http://www.dustmonkeys.com[/url] Quote Link to comment Share on other sites More sharing options...
Barand Posted October 22, 2006 Share Posted October 22, 2006 I've hilighted your errors in redvalues([color=red]"[/color]'$name','$email','$user','$pic','$link','$type','[color=red]date("m/d/Y)[/color] ') ") or die([color=red]Could not Submit.[/color]);1 ) remove the double quote at start of values2 ) several errors here a ) you cant drop a function call into a string like that. Either put the result into a variable and put that in the string or use concatenation "blah " . date('m/d/y') . " blahblah" b ) date format string needs to be enclosed in quotes c ) don't store dates in m/d/y format, use Y-m-d3 ) the error message should be in quotes. Quote Link to comment 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.