Jump to content


Photo

help


  • Please log in to reply
7 replies to this topic

#1 blankextacy

blankextacy
  • Members
  • PipPipPip
  • Advanced Member
  • 35 posts

Posted 22 October 2006 - 06:10 AM

could some one tell me why this isnt working?
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>";


#2 fert

fert
  • Members
  • PipPipPip
  • Advanced Member
  • 1,114 posts

Posted 22 October 2006 - 06:12 AM

try using $video[link]

Si hoc legere scis nimium eruditionis habes
Gentoo Linux 2007.0 Firefox 2

#3 blankextacy

blankextacy
  • Members
  • PipPipPip
  • Advanced Member
  • 35 posts

Posted 22 October 2006 - 06:15 AM

i tryed that but then edited it and now its this poop
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>";


#4 JasonLewis

JasonLewis
  • Members
  • PipPipPip
  • Advanced Member
  • 3,351 posts
  • LocationVictoria, Australia

Posted 22 October 2006 - 06:25 AM

so its working or is it getting errors?
Good luck with your coding.
Jason / ProjectFear / Jaysonic

#5 blankextacy

blankextacy
  • Members
  • PipPipPip
  • Advanced Member
  • 35 posts

Posted 22 October 2006 - 06:26 AM

working

#6 blankextacy

blankextacy
  • Members
  • PipPipPip
  • Advanced Member
  • 35 posts

Posted 22 October 2006 - 07:24 AM

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
}
	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.";
}
?>


#7 Giddy Rob

Giddy Rob
  • Members
  • PipPipPip
  • Advanced Member
  • 63 posts

Posted 22 October 2006 - 08:12 AM

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
http://www.dustmonkeys.com

#8 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,021 posts

Posted 22 October 2006 - 08:44 AM

I've hilighted your errors in red

values("'$name','$email','$user','$pic','$link','$type','date("m/d/Y) ') ") or die(Could not Submit.);


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.
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users