Page 2 of 2

Posted: Fri Jun 11, 2004 8:22 pm
by monkeyj
Only.. I'm calling mine "submit" not "song"

Posted: Fri Jun 11, 2004 8:28 pm
by andre_c
part two of what you just posted is full of the parse errors that come up when you have quotes inside of quotes. Where did you get that code?

Posted: Fri Jun 11, 2004 8:39 pm
by monkeyj
phpfreaks.com

Posted: Fri Jun 11, 2004 8:42 pm
by monkeyj
It was in a comment though... because the comment I found was easier to understand then the actual tutorial. lol

Posted: Fri Jun 11, 2004 8:42 pm
by monkeyj
You think you could be so kind to look through it for me? :-p

Posted: Fri Jun 11, 2004 11:17 pm
by ol4pr0
EDIT: oops to late lol

Code: Select all

// its not line 53 but the lines before that

// starting with single quote 
echo '<div align="center"><b> 
<p>Thanks for your vote!</p> 
<p>The new rating for this submission is: 
$new_rating2 out of 5</p>"; // ending with double quote
} 

#echo '<div align="">'; is always the best for me.. open single / in between doubles ( than u dont need to escape them )

Posted: Sat Jun 12, 2004 4:08 am
by d3ad1ysp0rk
I don't believe "or" is even proper if statement syntax. try using || instead.

(or is proper syntax for mysql however)

Posted: Sat Jun 12, 2004 4:18 pm
by andre_c
... actually 'and' and 'or' are valid, and they work just like '&&' and "||'

http://us2.php.net/manual/en/language.o ... ogical.php