View Full Version : a error in my stuff??

12-15-2003, 09:21 PM
<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));


<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>
<td colspan=3 align=center>
<tr valign=top>
<td width=20%>
<table border=1 bordercolor=676766 cellpadding=1 cellspacing=1 align=center width=80%>
<td class=first><b>Navigation</b></td>
<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>
<table border=1 bordercolor=676766 cellpadding=1 cellspacing=1 align=center width=80%>
<td class=first><b>

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

12-15-2003, 09:33 PM
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.:cool:

12-16-2003, 01:02 AM
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:thumbsup:

12-16-2003, 11:11 AM
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.

12-16-2003, 10:46 PM
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

12-16-2003, 11:09 PM
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

12-17-2003, 12:00 AM
thank you.

Paul Jr
12-17-2003, 05:54 AM
Originally posted by Nightfire
...It's probably due to the type="text/css" you have in the css link tag, try taking that out...

Originally posted by Nightfire
...put the link tag into the header area