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 8 of 8
  1. #1
    New Coder
    Join Date
    Dec 2003
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    a error in my stuff??

    <link rel="stylesheet" href="http://www.varinderbola.com/game/style.css" type="text/css">

    i think thats where the problem is but here is the whole thing




    <?
    function callback($buffer)
    {
    return (ereg_replace("nothing", "nothing", $buffer));
    }

    ob_start("callback");

    echo"<html>
    <head>
    <title>Www.VarinderBola.Com</title>
    </head>
    <link rel="stylesheet" href="http://www.varinderbola.com/game/style.css" type="text/css">
    <body background="http://www.varinderbola.com/game/back.gif">
    <table border=0 width=100% align=center cellpadding=0 cellspacing=0>
    <tr>
    <td colspan=3 align=center>
    <h1>Www.VarinderBola.Com</h1>
    </td>
    </tr>
    <tr valign=top>
    <td width=20%>
    <table border=1 bordercolor=676766 cellpadding=1 cellspacing=1 align=center width=80%>
    <tr>
    <td class=first><b>Navigation</b></td>
    </tr>
    <tr>
    <td>
    <br>
    <ul>
    <li><a href=http://www.varinderbola.com>Main Page</a><br>
    <li><a href=http://www.varinderbola.com/jokes.html>Jokes</a><br>
    <li><a href=signup.php>Sign-Up</a><br>
    <li><a href=login.php>Login</a><br>
    <li><a href=http://www.varinderbola.com/psms.html>Picture Sms</a><br>
    </ul>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td>
    <table border=1 bordercolor=676766 cellpadding=1 cellspacing=1 align=center width=80%>
    <tr>
    <td class=first><b>
    ";
    ?>




    i'm not too sure whats wrong w/ my coding can anyone help me out???

  • #2
    New Coder
    Join Date
    Dec 2003
    Posts
    80
    Thanks
    0
    Thanked 0 Times in 0 Posts
    PLEASE use the php function in the forum because it makes it much more easier for us to read and understand!

    and how do you call an error without an error message?!

    im guessing the error is here:

    <link rel="stylesheet" href="http://www.varinderbola.com/game/style.css" type="text/css">
    <body background="http://www.varinderbola.com/game/back.gif">



    you need to add \ after each = and before the second "

    so here is how its going to look like when you change:

    <link rel=\"stylesheet\" href=\"http://www.varinderbola.com/game/style.css\" type=\"text/css\">
    <body background=\"http://www.varinderbola.com/game/back.gif\">

    also you can not copy and paste the html code.
    read some php tutorials for a few days and start making something.

    you must be new at this.

  • #3
    New Coder
    Join Date
    Dec 2003
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank your for your reply i am new at this after reviewing my coding i realized this, but do not fully understand why you need the \'s thank you for your help, if u can answer the other ? that'd b nice too thanx

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    A string is typically surrounded by double or single quotes. You can nest quotes of a different type in a string, such as double quotes within single quotes and vice versa, but if you include a double quote in a double-quoted-string, you must escape it, or your parser moans.

    Escaping means to suppress the special meaning of a character. This is done in PHP by prepending a backslash character. The same technique works for single quotes too, and for a a lot of other characters like $, \ etc. as well. Just play a little with some dummy strings, and you'll develop a gut feeling when to escape special characters.
    De gustibus non est disputandum.

  • #5
    New Coder
    Join Date
    Dec 2003
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post another prob

    when i upload'd the code the text and the scrollbars didn't change right they were juss black and the scrollbars the same gray color

  • #6
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    That's nothing to do with php. It's probably due to the type="text/css" you have in the css link tag, try taking that out and then put the link tag into the header area

  • #7
    New Coder
    Join Date
    Dec 2003
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    kk

    thank you.

  • #8
    Regular Coder
    Join Date
    Dec 2003
    Location
    USA
    Posts
    230
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Nightfire
    ...It's probably due to the type="text/css" you have in the css link tag, try taking that out...
    http://www.w3.org/TR/REC-html40/pres....html#h-14.2.3

    Originally posted by Nightfire
    ...put the link tag into the header area
    http://www.w3.org/TR/REC-html40/pres...es.html#h-14.1


  •  

    Posting Permissions

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