Jump to content

Archived

This topic is now archived and is closed to further replies.

blankextacy

help

Recommended Posts

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]

Share this post


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

Share this post


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

Share this post


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

Regards

Robert Shillito
[url=http://www.dustmonkeys.com]http://www.dustmonkeys.com[/url]

Share this post


Link to post
Share on other sites
I've hilighted your errors in red

values([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 values

2 ) 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-d

3 ) the error message should be in quotes.

Share this post


Link to post
Share on other sites

×

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.