Be a Supporter!

Php Help

  • 288 Views
  • 5 Replies
New Topic Respond to this Topic
elbekko
elbekko
  • Member since: Jul. 23, 2004
  • Offline.
Forum Stats
Member
Level 16
Blank Slate
Response to Php Help 2006-09-05 16:02:21 Reply

Check the previous line, it's probably missing a ;


"My software never has bugs. It just develops random features. " - Unknown

[ FluxBB developer | Quickmarks 0.5.1 | Strings & Ints - my blog ]

BBS Signature
Mister-Mind
Mister-Mind
  • Member since: Jul. 1, 2006
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to Php Help 2006-09-05 16:04:48 Reply

Uhh ca1um, This is unrelated to your question, But when I went to calum.com. and clicked on the one where you enter after reading the disclamer note. you get this

Parse error: syntax error, unexpected T_ECHO, expecting ',' or ';' in /home/calumla/public_html/loginpage.php on line 7

ints on loginpage.php

JeremysFilms
JeremysFilms
  • Member since: Feb. 18, 2005
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
Response to Php Help 2006-09-05 16:36:02 Reply

At 9/5/06 04:00 PM, Ca1um wrote: echo (" <a href=\"forum/login.php?logout=true&sid=$se
ssionid\">Logout</a>");

Horrible syntax, this looks nicer:

echo '<a href="forum/login.php?logout=true&side='.$
sessionid.'">Logout</a>';

DFox
DFox
  • Member since: Aug. 9, 2003
  • Offline.
Forum Stats
Member
Level 30
Blank Slate
Response to Php Help 2006-09-05 17:04:19 Reply

At 9/5/06 04:36 PM, JeremysFilms wrote: Horrible syntax, this looks nicer:

Thank you for saying that. Everything you wrote there is correct, and how that segment of code should be written.


BBS Signature
elbekko
elbekko
  • Member since: Jul. 23, 2004
  • Offline.
Forum Stats
Member
Level 16
Blank Slate
Response to Php Help 2006-09-05 17:19:15 Reply

At 9/5/06 05:04 PM, DFox2 wrote:
At 9/5/06 04:36 PM, JeremysFilms wrote: Horrible syntax, this looks nicer:
Thank you for saying that. Everything you wrote there is correct, and how that segment of code should be written.

Indeed. People write horrible code from time to time =/


"My software never has bugs. It just develops random features. " - Unknown

[ FluxBB developer | Quickmarks 0.5.1 | Strings & Ints - my blog ]

BBS Signature
WoogieNoogie
WoogieNoogie
  • Member since: Jun. 26, 2005
  • Offline.
Forum Stats
Member
Level 15
Programmer
Response to Php Help 2006-09-06 00:18:46 Reply

At 9/5/06 05:04 PM, DFox2 wrote:
At 9/5/06 04:36 PM, JeremysFilms wrote: Horrible syntax, this looks nicer:
Thank you for saying that. Everything you wrote there is correct, and how that segment of code should be written.

See, I've always liked echoing with double quotes...I don't know why.