[PHP] Parse error - script help.

2001-04-16 Thread Dddogbruce \(@home.com\)

Ok, I know it's messy - no, I don't care.  :P

Parse error: parse error in C:/XITAMI/owen/website/tss/guestbookSG.php
on line 43

html
head
titlethe southern side : owen : mmmHm/title
style
!--
A:hover { color:rgb(215,152,1); cursor:hand-il; }
A:link { font-style:normal; font-weight:normal; text-decoration:none;
cursor:hand-il; }
A:visited { font-style:normal; font-weight:normal; text-decoration:none;
cursor:hand-il; }
--
/style
/head

body bgcolor="white" text="black" link="black" vlink="black"
alink="black"

p align="center"nbsp;
div align="center"table border="0" cellpadding="0" cellspacing="0"
tr
td width="304"pimg src="top.gif" width="302" height="18"
border="0"/td
/tr
/table/div
div align="center"table border="0" cellpadding="0" cellspacing="0"
tr
td width="87" valign="top" bgcolor="white"
background="bg1.gif"p align="center"font
 face="Verdana" size="1"tss menu/font/p
? include("tssmenu.txt") ?
pnbsp;/p
pnbsp;/p
pnbsp;/td
td width="219" valign="top"pfont face="Verdana"
size="1"bguestbook
signed/b/fontfont face="Verdana" size="1": /fonta
href="mailto:[EMAIL PROTECTED]"font
 face="Verdana" size="1"Owen/font/a/p
pfont face="Verdana" size="1"
?
$space = " ";
if( $submitfrm )
 {
echo "your entry will be added shortly.";
$submitmsg = file( "gb.txt" );
$fp = fopen( "gb.txt", 'a' );
rewind($fp);
fwrite( $fp, "fwrite( $fp, "table border=\"0\" cellpadding=\"0\"
cellspacing=\"0\" tr td width=\"236\"pfont
size=\"1\"b$subject/b :  a href=\"mailto:$email\"$name/a/td
/tr tr td width=\"236\"font size=\"1\"p$submition/td /tr
/tablebr" );
fclose( $fp );
 }
else
 {
include ( "guestbooks.php" );
 }
?
/font/td
/tr
/table/div
div align="center"table border="0" cellpadding="0" cellspacing="0"
tr
td width="300"p align="center"img src="bottom.gif"
width="281" height="8"
 border="0"/td
/tr
/table/div
pnbsp;/p
/body

/html

It isn't working.  Pfft!

-Owen


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Parse error - script help.

2001-04-16 Thread Brian Clark

Hi Dddogbruce,

@ 10:58:47 PM on 4/16/2001, Dddogbruce (@home.com) wrote:

 Ok, I know it's messy - no, I don't care.  :P

 Parse error: parse error in C:/XITAMI/owen/website/tss/guestbookSG.php
 on line 43

...
 ?
 $space = " ";
 if( $submitfrm )
  {
 echo "your entry will be added shortly.";
 $submitmsg = file( "gb.txt" );
 $fp = fopen( "gb.txt", 'a' );
 rewind($fp);
 fwrite( $fp, "fwrite( $fp, "table border=\"0\" cellpadding=\"0\"

  ^^^

  Remove the quotation mark.

 cellspacing=\"0\" tr td width=\"236\"pfont
 size=\"1\"b$subject/b :  a href=\"mailto:$email\"$name/a/td
 /tr tr td width=\"236\"font size=\"1\"p$submition/td /tr
 /tablebr" );
 fclose( $fp );
  }
 else
  {
 include ( "guestbooks.php" );
  }
?
...

 It isn't working.  Pfft!

 -Owen


-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Parse error - script help.

2001-04-16 Thread Brian Clark

Hi Brian,

@ 11:14:55 PM on 4/16/2001, Brian Clark wrote:

 fwrite( $fp, "fwrite( $fp, "table border=\"0\" cellpadding=\"0\"

   ^^^

   Remove the quotation mark.

Duh, Brian. You have an extra fwrite($fp) in there.

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]