Jump to content

help


blankextacy

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.