Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder Ranger56's Avatar
    Join Date
    Mar 2005
    Location
    Kent, WA.
    Posts
    783
    Thanks
    0
    Thanked 0 Times in 0 Posts

    html is messin up my php

    I have some variables that are paragraphs, and if I put <br /> in it it messes up my syntax highlighting, it looks the same if I add an extra " somewhere.

  • #2
    New Coder
    Join Date
    Feb 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You should probably show us your script.

  • #3
    Regular Coder Ranger56's Avatar
    Join Date
    Mar 2005
    Location
    Kent, WA.
    Posts
    783
    Thanks
    0
    Thanked 0 Times in 0 Posts
    There's some vivid language.

  • #4
    New Coder
    Join Date
    Feb 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well if we can't see it then no one can help.

  • #5
    Regular Coder Ranger56's Avatar
    Join Date
    Mar 2005
    Location
    Kent, WA.
    Posts
    783
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm sure I'm doing something wrong but here

    PHP Code:
    if ($m=SUX) {
    $name "Sux";
    $message "Holy **** guys...this is the most f***** up s*** i have ever heard...
    and it's not even funny. you guy have a nice site and all, bu then that home made music s*** is wack,
    its like me playing when i havn't drunk water for 2 months.
    <br /><br />
    Wanna hear my suggestion... <br />
    -make some REAL music<br />
    -get some better people<br />
    -spiders eat babies? <br /><br />

    This sucked sooo badd, that i am actually writing this to you guys!"
    ;
    $comments "Well, first off, we try! Thanks for telling us how much you like us. Oh wait... You don't like it? THAT'S TOO BAD. And you should totally try not drinking water for two months, that would RULE.
    Suggestions
        - stop listening to the radio
        - what does THAT mean?
        - they do, its very common"
    ;

    There's more else if stuff below it

  • #6
    Senior Coder
    Join Date
    Sep 2005
    Posts
    1,791
    Thanks
    5
    Thanked 36 Times in 35 Posts
    and what exactly is the problem?

    PHP Code:
    if ($m=SUX) { 
    struck me as an obvious error, you want to use == to test for equality. And to confirm, you have defined 'SUX' as a constant prior to here?

  • #7
    Regular Coder Ranger56's Avatar
    Join Date
    Mar 2005
    Location
    Kent, WA.
    Posts
    783
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by GJay
    and what exactly is the problem?

    PHP Code:
    if ($m=SUX) { 
    struck me as an obvious error, you want to use == to test for equality. And to confirm, you have defined 'SUX' as a constant prior to here?
    Yeah, I suck at PHP, SUX is in the url.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •