Gossamer Forum
Home : Products : DBMan : Installation :

Syntax Error

Quote Reply
Syntax Error
Ok, well, I'm just plain worn out. I've been working with DBMan for quite some time now and I've always been able to get it to work, but somewhere I got careless and you know what that does... You guessed it.. SYNTAX ERROR. Grrr...

I can't find it, but the script tells me it's around line 205 near " . If anyone has time, I'd really appreciate another set of eyes.

We're going through an upgrade process and it's always a trial. There's always at least one glitch that really tries my patience.

Thanks again in advance for any help anyone might be able to offer.

Oh.. almost forgot.. the html.pl file is at the following URL

http://www.chsmusic.addr.com/shared/html_pl.txt

Thanks again!
Quote Reply
Re: Syntax Error In reply to
Your problem is in the line

<tr><td><img src="/images/spacer.gif" width=5 height=5><a class="menu" href="/cgi-bin/news/newsdesk.cgi?a=latest&t=template.shtml">What's New?</a></td></tr>

Since you are using single quotes in your variable definition, you need to escape the apostrophe in What's New.

<tr><td><img src="/images/spacer.gif" width=5 height=5><a class="menu" href="/cgi-bin/news/newsdesk.cgi?a=latest&t=template.shtml">What\'s New?</a></td></tr>




------------------
JPD





Quote Reply
Re: Syntax Error In reply to
defining your page_... globals as:

$page_open = "print qq|<the table you define><with all the open and closing tags>|;

and when you need it in your 'html.pl' just call

$page_open

out of a printing statement.
Thats for me the thing I think what can make an error.

--------
Mart.

[This message has been edited by mart (edited September 25, 1999).]
Quote Reply
Re: Syntax Error In reply to
Ok, thanks both of you. I'll get on that this evening and let you know how it came out.




------------------
Quote Reply
Re: Syntax Error In reply to
It's hard through a text file to find the line in question. One thing that pops in my mind is that you are using special characters, like & amp;, which Perl interprets as calling a sub-routine within the script with the & character, unless you have the & amp; character between print qq| |; or print qq! !;.

This is the only thing that sent a red flag in my mind.

Hope this helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited September 25, 1999).]
Quote Reply
Re: Syntax Error In reply to
JPD-

Thank's! That's exactly what I was looking for. With my tired eyes, I completely overlooked escaping the appostrophe in "What's". Case closed. Thanks again everyone for your help in running down this problem. I can always count on this forum. Very well run and monitored. A BIG help.
Quote Reply
Re: Syntax Error In reply to
Glad I could help. Smile

It's not too hard to debug syntax errors with a combination of having Perl installed on your home computer and using EditPlus as your editor. That way you can compile the script and it will tell you where you went wrong.


------------------
JPD